Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit48658b6

Browse files
author
Thomas
committed
refactor code : merge two condition
1 parent421c830 commit48658b6

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
publicstaticStringgetString(Map<String,Object>map,Stringkey) {
15-
if(key ==null)returnnull;
16-
if(key.equals("false"))returnnull;
15+
if(key ==null ||key.equals("false"))returnnull;
1716
String[]parts =key.split("\\.");
1817
Objectcurrent =map;
1918

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp