Skip to content

Commit

Permalink
delete log error when encryptKeyPath is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujt20 committed Dec 12, 2024
1 parent a0310f8 commit 0a6c61a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ public static String getEncryptClass(String encryptType) {

public static String getEncryptKeyFromPath(String path) {
if (path == null) {
logger.error("encrypt key path is null, use the default key");
return defaultKey;
}
if (path.isEmpty()) {
logger.error("encrypt key path is empty, use the default key");
return defaultKey;
}
try (BufferedReader br = new BufferedReader(new FileReader(path))) {
Expand Down

0 comments on commit 0a6c61a

Please sign in to comment.