From 97e41d76b9133c8f303b46b47dabb7acdfaab65e Mon Sep 17 00:00:00 2001 From: chaosinthecrd Date: Thu, 1 Feb 2024 18:59:29 +0000 Subject: [PATCH] we dont always add verifiers Signed-off-by: chaosinthecrd --- cmd/keyloader.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cmd/keyloader.go b/cmd/keyloader.go index b8b3d821..86bfb6c3 100644 --- a/cmd/keyloader.go +++ b/cmd/keyloader.go @@ -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) @@ -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 }