Skip to content

Commit 48658b6

Browse files
author
Thomas
committed
refactor code : merge two condition
1 parent 421c830 commit 48658b6

File tree

1 file changed

+1
-2
lines changed
  • server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/util

1 file changed

+1
-2
lines changed

server/api-service/lowcoder-server/src/main/java/org/lowcoder/api/authentication/util/AdvancedMapUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class AdvancedMapUtils {
1212
* @return The string value if found, otherwise null.
1313
*/
1414
public static String getString(Map<String, Object> map, String key) {
15-
if(key == null) return null;
16-
if(key.equals("false")) return null;
15+
if(key == null || key.equals("false")) return null;
1716
String[] parts = key.split("\\.");
1817
Object current = map;
1918

0 commit comments

Comments
 (0)