Skip to content

Commit

Permalink
clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
bz-stripe committed Jul 19, 2021
1 parent 6949297 commit f710ef2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
}

function shouldSeparateType(omittedTypes, impType) {
console.log('%c shouldSeparateType', 'color: #b0b', { omittedTypes, impType });
return impType === 'type' && !('type' in omittedTypes);
}

Expand All @@ -323,7 +322,6 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) {
} else {
impType = importType(importEntry.value, context);
}
console.log('%c computeRank', 'color: #b0b', { file: importEntry.value, impType });
if (!excludedImportTypes.has(impType) && !shouldSeparateType(ranks.omittedTypes, impType)) {
rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition, impType);
}
Expand Down

0 comments on commit f710ef2

Please sign in to comment.