fix typing problem

This commit is contained in:
Tobias Koppers 2018-06-06 18:49:20 +02:00
parent 79a1defd88
commit ba2f247116
1 changed files with 4 additions and 4 deletions

View File

@ -14,12 +14,12 @@ const WebpackError = require("./WebpackError");
*/
const sortModules = modules => {
return modules.slice().sort((a, b) => {
a = a.identifier();
b = b.identifier();
const aIdent = a.identifier();
const bIdent = b.identifier();
/* istanbul ignore next */
if (a < b) return -1;
if (aIdent < bIdent) return -1;
/* istanbul ignore next */
if (a > b) return 1;
if (aIdent > bIdent) return 1;
/* istanbul ignore next */
return 0;
});