Skip to content

Commit 321c79c

Browse files
committed
chore(order): maintain use of backwards-compatible undefined check
1 parent d43969b commit 321c79c

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
@@ -533,10 +533,10 @@ function computeRank(context, ranks, importEntry, excludedImportTypes, isSorting
533533
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition);
534534
}
535535

536-
if (rank === undefined) {
536+
if (typeof rank === 'undefined') {
537537
rank = ranks.groups[impType];
538538

539-
if (rank === undefined) {
539+
if (typeof rank === 'undefined') {
540540
return -1;
541541
}
542542
}

0 commit comments

Comments
 (0)