Skip to content

Commit

Permalink
chore: (#490) code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed May 10, 2023
1 parent 4860209 commit 3b601bb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ class EntityEncryptAspect(
when (f.getAnnotation(EncryptedColumn::class.java).type) {
EncryptType.SYMMETRIC -> encryptPort.symmetricEncrypt(
secretKey = getSchoolKey(),
plainText = f.get(obj) as String
plainText = f[obj] as String
)
EncryptType.ASYMMETRIC -> encryptPort.asymmetricEncrypt(
plainText = f.get(obj) as String
plainText = f[obj] as String
)
}
}
Expand All @@ -97,10 +97,10 @@ class EntityEncryptAspect(
when (f.getAnnotation(EncryptedColumn::class.java).type) {
EncryptType.SYMMETRIC -> encryptPort.symmetricDecrypt(
secretKey = getSchoolKey(),
cipherText = f.get(obj) as String
cipherText = f[obj] as String
)
EncryptType.ASYMMETRIC -> encryptPort.asymmetricDecrypt(
cipherText = f.get(obj) as String
cipherText = f[obj] as String
)
}
}
Expand Down

0 comments on commit 3b601bb

Please sign in to comment.