Skip to content

Commit d58017a

Browse files
committed
remove useless check
1 parent 8a9a07d commit d58017a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/rules/jsx-sort-props.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ function isReservedPropName(name, list) {
5151
}
5252

5353
function getSortFirstIndex(name, sortFirstList, ignoreCase) {
54-
if (!sortFirstList || sortFirstList.length === 0) {
55-
return -1;
56-
}
5754
const normalizedPropName = ignoreCase ? name.toLowerCase() : name;
5855
for (let i = 0; i < sortFirstList.length; i++) {
5956
const normalizedListName = ignoreCase ? sortFirstList[i].toLowerCase() : sortFirstList[i];

0 commit comments

Comments
 (0)