Skip to content

Commit

Permalink
Revert syntax changes
Browse files Browse the repository at this point in the history
  • Loading branch information
e-pavlica committed Mar 2, 2018
1 parent 2249522 commit 9cdc8ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function transformSource (runner, config, source, map, callback) {
function addDependencies (loader, paths, callback) {
var remaining = paths.length

if (remaining === 0) { callback(null) }
if (remaining === 0) callback(null)

paths.forEach(function (path) {
fs.stat(path, function (error, stats) {
Expand All @@ -148,14 +148,14 @@ function addDependencies (loader, paths, callback) {
)
}
remaining--
if (remaining === 0) { callback(null) }
if (remaining === 0) callback(null)
}
})
})
}

var setTimeoutMsFromTimeoutInPlace = util.deprecate(function (config) {
if (config.timeoutMs) {
if (config.timeoutMs != null) {
throw new TypeError(
'Both options `timeout` and `timeoutMs` were set -- please just use ' +
'`timeoutMs`'
Expand Down
2 changes: 0 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* globals test, expect, fail */

var MemoryFS = require('memory-fs')
var path = require('path')
var webpack = require('webpack')
Expand Down

0 comments on commit 9cdc8ca

Please sign in to comment.