This commit is contained in:
Leijurv committed 2018-08-01 13:13:02 -04:00
1 parent 35a7d5d818
commit 2fdcf8640d
2 files changed
+2 -1

No files matched your search

+2 -1
View File
@@ -9,7 +9,8 @@ import java.util.function.Supplier;
public final class Utils {
public static void ifConditionThen(Supplier<Boolean> condition, Runnable runnable) {
if (condition.get())
if (condition.get()) {
runnable.run();
}
}
}