Skip to content

Commit

Permalink
delete log error when encryptKeyPath is empty (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhujt20 authored Dec 13, 2024
1 parent a0310f8 commit 0579fc7
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 0579fc7

Please sign in to comment.