1
0
mirror of https://github.com/lucko/LuckPerms.git synced 2025-09-09 13:50:52 +02:00

Some misc cleanup

This commit is contained in:
Luck
2020-06-03 21:20:41 +01:00
parent 8754123535
commit 11998b2dd6
8 changed files with 19 additions and 31 deletions

View File

@@ -60,10 +60,7 @@ public enum DataQueryOrder implements Comparator<DataType> {
if (o1 == o2) {
return 0;
}
return Boolean.compare(
o1 == DataType.TRANSIENT,
o2 == DataType.TRANSIENT
);
return o1 == DataType.TRANSIENT ? 1 : -1;
}
},
@@ -76,10 +73,7 @@ public enum DataQueryOrder implements Comparator<DataType> {
if (o1 == o2) {
return 0;
}
return -Boolean.compare(
o1 == DataType.TRANSIENT,
o2 == DataType.TRANSIENT
);
return o1 == DataType.TRANSIENT ? -1 : 1;
}
};