Skip to content

Commit 853d7b6

Browse files
committed
chore(order): maintain use of backwards-compatible undefined check
1 parent 3f45fe6 commit 853d7b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rules/order.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,10 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
527527
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition);
528528
}
529529

530-
if (rank === undefined) {
530+
if (typeof rank === 'undefined') {
531531
rank = ranks.groups[impType];
532532

533-
if (rank === undefined) {
533+
if (typeof rank === 'undefined') {
534534
return -1;
535535
}
536536
}

0 commit comments

Comments
 (0)