Skip to content

Commit 72a2085

Browse files
committed
Refactor a bit to please the code climate
1 parent 0690264 commit 72a2085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/hexlet/code/schemas/MapSchema.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public MapSchema required() {
1414
}
1515

1616
public MapSchema sizeof(int size) {
17-
addRequirement("sizeof", map -> map == null || map instanceof Map && ((Map<?, ?>) map).size() == size);
17+
addRequirement("sizeof", map -> map == null || map instanceof Map && size == ((Map<?, ?>) map).size());
1818
return this;
1919
}
2020

0 commit comments

Comments
 (0)