Skip to content

Commit

Permalink
remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
pri1311 committed Mar 15, 2022
1 parent 2b1a911 commit 126d094
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/rules/order.js
Expand Up @@ -248,17 +248,13 @@ function getSorter(ascending) {

const A = importA.split('/');
const B = importB.split('/');
const a = A.length;
const b = B.length;

if (A < B) {
result = -1;
} else if (A > B) {
result = 1;
} else if (a !== b) {
result = a < b ? -1 : 1;
}

}

return result * multiplier;
};
}
Expand Down

0 comments on commit 126d094

Please sign in to comment.