Skip to content

Commit 3e73ba2

Browse files
authored
Merge pull request #761 from Automattic/fix/regexcompare-remove-redundant-condition
2 parents 1647385 + 80a7c06 commit 3e73ba2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

WordPressVIPMinimum/Sniffs/Performance/RegexpCompareSniff.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function getGroups() {
4747
public function callback( $key, $val, $line, $group ) {
4848
return ( strpos( $val, 'NOT REGEXP' ) === 0
4949
|| strpos( $val, 'REGEXP' ) === 0
50-
|| in_array( $val, [ 'REGEXP', 'NOT REGEXP' ], true ) === true
5150
);
5251
}
5352
}

0 commit comments

Comments
 (0)