Skip to content

Commit

Permalink
node v4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mairu committed Dec 14, 2019
1 parent 855748b commit c9d1aef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/order.js
Expand Up @@ -314,7 +314,7 @@ function computePathRank(ranks, pathGroups, path, maxPosition) {
function computeRank(context, ranks, name, type, excludedImportTypes) {
const impType = importType(name, context)
let rank
if (!excludedImportTypes.includes(impType)) {
if (excludedImportTypes.indexOf(impType) === -1) {
rank = computePathRank(ranks.groups, ranks.pathGroups, name, ranks.maxPosition)
}
if (!rank) {
Expand Down

0 comments on commit c9d1aef

Please sign in to comment.