Fix lint issues in ./internal/encryption (#2782)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh
2025-05-09 17:06:42 -04:00
committed by GitHub
parent 240e3dc79b
commit 13c1ca768b

View File

@@ -132,8 +132,8 @@ func TestKeyProvider(t *testing.T) {
return nil
},
ValidateMetadata: func(meta *keyMeta) error {
if meta.CiphertextBlob == nil || len(meta.CiphertextBlob) == 0 {
return fmt.Errorf("ciphertext blob is nil")
if len(meta.CiphertextBlob) == 0 {
return fmt.Errorf("ciphertext blob is empty")
}
return nil
},