Skip to content

Commit dfc1d96

Browse files
committed
More lint
1 parent 13ddee9 commit dfc1d96

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

keystore/cli/cli.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -373,10 +373,6 @@ func loadKeystoreSignerReader(ctx context.Context, cmd *cobra.Command) (ks.Keyst
373373
// Check if KMS mode is enabled
374374
kmsProfile := os.Getenv("KEYSTORE_KMS_PROFILE")
375375
if kmsProfile != "" {
376-
kmsProfile := os.Getenv("KEYSTORE_KMS_PROFILE")
377-
if kmsProfile == "" {
378-
return nil, errors.New("KEYSTORE_KMS_PROFILE is required for KMS keystore")
379-
}
380376
client, err := kms.NewClient(kmsProfile)
381377
if err != nil {
382378
return nil, fmt.Errorf("create KMS client: %w", err)

0 commit comments

Comments
 (0)