diff --git a/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java b/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java index 9128b0f..da6dee6 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/util/RestfulResult.java @@ -96,7 +96,7 @@ public class RestfulResult { } public static Builder successIf(final BooleanSupplier booleanSupplier) { - return new Builder(booleanSupplier, () -> success()); + return new Builder(booleanSupplier, RestfulResult::success); } public static Builder successIf(final boolean condition, final String msg) {