Fix logic in SupplierUtils

This commit is contained in:
Sam Brannen
2024-01-29 16:07:44 +01:00
parent a44341ece3
commit f6d8443781

View File

@@ -49,7 +49,7 @@ public abstract class SupplierUtils {
*/
@Nullable
public static Object resolve(@Nullable Object candidate) {
return (candidate instanceof Supplier<?> supplier ? supplier.get() : null);
return (candidate instanceof Supplier<?> supplier ? supplier.get() : candidate);
}
}