Skip to content

Commit 1ca515b

Browse files
committed
Simplify the code
1 parent 6e2619f commit 1ca515b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/apijson/framework/AssertUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void assertEqual(Object a, Object b, String errorMessage) {
2929
return;
3030
}
3131

32-
if (a == null || b == null || a.equals(b) == false) {
32+
if (a == null || !a.equals(b)) {
3333
throw new AssertionError(errorMessage == null ? "assert fail: a != b" : errorMessage);
3434
}
3535
}

0 commit comments

Comments
 (0)