Skip to content

Commit ba2f247

Browse files
committed
fix typing problem
1 parent 79a1def commit ba2f247

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/CaseSensitiveModulesWarning.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ const WebpackError = require("./WebpackError");
1414
*/
1515
const sortModules = modules => {
1616
return modules.slice().sort((a, b) => {
17-
a = a.identifier();
18-
b = b.identifier();
17+
const aIdent = a.identifier();
18+
const bIdent = b.identifier();
1919
/* istanbul ignore next */
20-
if (a < b) return -1;
20+
if (aIdent < bIdent) return -1;
2121
/* istanbul ignore next */
22-
if (a > b) return 1;
22+
if (aIdent > bIdent) return 1;
2323
/* istanbul ignore next */
2424
return 0;
2525
});

0 commit comments

Comments
 (0)