Skip to content

Commit

Permalink
we dont always add verifiers
Browse files Browse the repository at this point in the history
Signed-off-by: chaosinthecrd <[email protected]>
  • Loading branch information
ChaosInTheCRD committed Feb 1, 2024
1 parent 2f522db commit 97e41d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cmd/keyloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func loadSigners(ctx context.Context, so options.SignerOptions, signerProviders
return signers, nil
}

// NOTE: This is a temprorary implementation until we have a SignerVerifier interface
// NOTE: This is a temporary implementation until we have a SignerVerifier interface
// loadVerifiers loads all verifiers that appear in the verifierProviders set and creates their respective verifiers, using any options provided in so
func loadVerifiers(ctx context.Context, so options.VerifierOptions, verifierProviders map[string]struct{}) ([]cryptoutil.Verifier, error) {
verifiers := make([]cryptoutil.Verifier, 0)
Expand All @@ -93,9 +93,5 @@ func loadVerifiers(ctx context.Context, so options.VerifierOptions, verifierProv
verifiers = append(verifiers, s)
}

if len(verifiers) == 0 {
return verifiers, fmt.Errorf("failed to load any verifiers")
}

return verifiers, nil
}

0 comments on commit 97e41d7

Please sign in to comment.