This commit is contained in:
Leijurv 2018-08-01 13:13:02 -04:00
parent 35a7d5d818
commit 2fdcf8640d
No known key found for this signature in database
GPG Key ID: 0936202430AE187C
2 changed files with 2 additions and 1 deletions

View File

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