Skip to content

Commit eff1f8f

Browse files
committed
sticking to prettier's standards
1 parent fcf634c commit eff1f8f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/HotModuleReplacement.runtime.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ module.exports = function() {
1919
var fn = function(request) {
2020
if (me.hot.active) {
2121
if (installedModules[request]) {
22-
if (installedModules[request].parents.indexOf(moduleId)===-1)
22+
if (installedModules[request].parents.indexOf(moduleId) === -1)
2323
installedModules[request].parents.push(moduleId);
2424
} else {
2525
hotCurrentParents = [moduleId];
2626
hotCurrentChildModule = request;
2727
}
28-
if (me.children.indexOf(request)===-1) me.children.push(request);
28+
if (me.children.indexOf(request) === -1) me.children.push(request);
2929
} else {
3030
console.warn(
3131
"[HMR] unexpected require(" +
@@ -316,7 +316,7 @@ module.exports = function() {
316316
parentId: parentId
317317
};
318318
}
319-
if (outdatedModules.indexOf(parentId)!==-1) continue;
319+
if (outdatedModules.indexOf(parentId) !== -1) continue;
320320
if (parent.hot._acceptedDependencies[moduleId]) {
321321
if (!outdatedDependencies[parentId])
322322
outdatedDependencies[parentId] = [];
@@ -343,7 +343,7 @@ module.exports = function() {
343343
function addAllToSet(a, b) {
344344
for (var i = 0; i < b.length; i++) {
345345
var item = b[i];
346-
if (a.indexOf(item)===-1) a.push(item);
346+
if (a.indexOf(item) === -1) a.push(item);
347347
}
348348
}
349349

@@ -551,7 +551,7 @@ module.exports = function() {
551551
dependency = moduleOutdatedDependencies[i];
552552
cb = module.hot._acceptedDependencies[dependency];
553553
if (cb) {
554-
if (callbacks.indexOf(cb)!==-1) continue;
554+
if (callbacks.indexOf(cb) !== -1) continue;
555555
callbacks.push(cb);
556556
}
557557
}

0 commit comments

Comments
 (0)