Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mj-palanker committed Dec 11, 2024
1 parent 650a501 commit 6fab38d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (pkem *EncryptionManager) Encrypt(ctx context.Context, cred *v2.PlaintextDa
return encryptedDatas, nil
}

// MJP creating the providerMap means parsing the configs and failing early instead of in Encrypt
// MJP creating the providerMap means parsing the configs and failing early instead of in Encrypt.
func NewEncryptionManager(ctx context.Context, co *v2.CredentialOptions, ec []*v2.EncryptionConfig) (*EncryptionManager, error) {
// Group the encryption configs by provider
providerMap := make(map[string]([]*v2.EncryptionConfig))
Expand Down
1 change: 0 additions & 1 deletion pkg/crypto/crypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ func TestMultiRecipientEncrypton(t *testing.T) {
require.NoError(t, err)
_, err = provider.Decrypt(ctx, cipherText, badKey)
require.Error(t, err)

}

func testEncryptionProvider(t *testing.T, ctx context.Context, config *v2.EncryptionConfig, privKey []byte) {
Expand Down
2 changes: 0 additions & 2 deletions pkg/crypto/providers/jwk/jwk.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ func (j *JWKEncryptionProvider) Encrypt(ctx context.Context, configs []*v2.Encry
Schema: plainText.Schema,
EncryptedBytes: []byte(encCipherText),
})

}

return encrypted, nil
}

Expand Down

0 comments on commit 6fab38d

Please sign in to comment.