Skip to content

Commit 08b5c52

Browse files
Merge pull request #111 from Ahtisham-1214/main
Remove method duplication
2 parents 8bdbba6 + 0f31f11 commit 08b5c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mycmd/StringUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** String helper functions for commands. */
44
public class StringUtils {
55
public static boolean isEmpty(String s) {
6-
return s == null || s.trim().isEmpty();
6+
return s == null || s.isBlank();
77
}
88

99
public static String join(String[] arr, int start) {

0 commit comments

Comments
 (0)