Skip to content

Commit

Permalink
Add panic if create client fails (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: Petter Berven <[email protected]>
  • Loading branch information
buster1253 and Petter Berven committed May 27, 2024
1 parent ffab48e commit 6d2665c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/vaultengine/vaultclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ func NewClient(addr, token string, insecure bool, namespace string, role string,
authPath: authPath,
}

client.newVaultClient()
if err := client.newVaultClient(); err != nil {
panic(err)
}

return client
}
Expand Down

0 comments on commit 6d2665c

Please sign in to comment.