Skip to content

Commit 126d094

Browse files
committed
remove unnecessary code
1 parent 2b1a911 commit 126d094

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/rules/order.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -248,17 +248,13 @@ function getSorter(ascending) {
248248

249249
const A = importA.split('/');
250250
const B = importB.split('/');
251-
const a = A.length;
252-
const b = B.length;
253251

254252
if (A < B) {
255253
result = -1;
256254
} else if (A > B) {
257255
result = 1;
258-
} else if (a !== b) {
259-
result = a < b ? -1 : 1;
260-
}
261-
256+
}
257+
262258
return result * multiplier;
263259
};
264260
}

0 commit comments

Comments
 (0)