Skip to content

Commit

Permalink
chore(order): maintain use of backwards-compatible undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Dec 31, 2024
1 parent 3f45fe6 commit 853d7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,10 +527,10 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition);
}

if (rank === undefined) {
if (typeof rank === 'undefined') {
rank = ranks.groups[impType];

if (rank === undefined) {
if (typeof rank === 'undefined') {
return -1;
}
}
Expand Down

0 comments on commit 853d7b6

Please sign in to comment.