Skip to content

Commit b0accfc

Browse files
fixed pmd
1 parent 4243055 commit b0accfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/thealgorithms/Recursion/RegexMatchingRecursive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public boolean isMatch(String s, String p) {
1010
}
1111

1212
// Check if the first character of s matches the first character of p.
13-
boolean firstMatch = (!s.isEmpty() && p.charAt(0) == s.charAt(0) || p.charAt(0) == '.');
13+
boolean firstMatch = !s.isEmpty() && p.charAt(0) == s.charAt(0) || p.charAt(0) == '.';
1414

1515
// So...If there's a '*' in the second position of p i.e., p.charAt(1) == '*'
1616
// it means we can either:

0 commit comments

Comments
 (0)