revolutionary change in stopping optionals from being my biggest headache

This commit is contained in:
Squibid 2025-11-12 14:06:57 -05:00
parent d9c0cd4cac
commit 0f0fe0a0f9
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 2 additions and 6 deletions

View file

@ -29,8 +29,6 @@ public final class StOptional {
* @return boolean true if null or empty, false otherwise * @return boolean true if null or empty, false otherwise
*/ */
public static final boolean nullish(Optional<?> o) { public static final boolean nullish(Optional<?> o) {
if (o == null || o.isEmpty()) return (o == null || o.isEmpty());
return true;
return false;
} }
} }

View file

@ -38,8 +38,6 @@ final class StOptional {
* @return boolean true if null or empty, false otherwise * @return boolean true if null or empty, false otherwise
*/ */
public static final boolean nullish(Optional<?> o) { public static final boolean nullish(Optional<?> o) {
if (o == null || o.isEmpty()) return (o == null || o.isEmpty());
return true;
return false;
} }
} }