Skip to content

Commit 31562e9

Browse files
use squiggly brackets
1 parent 2d0a515 commit 31562e9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/test.js

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ describe('ipfs executable path', function () {
2121
let npm3Path = '/tmp/ipfsd-ctl-test/node_modules/go-ipfs-dep/go-ipfs'
2222

2323
mkdirp(npm3Path, (err) => {
24-
if (err) console.log(err)
24+
if (err) {
25+
console.log(err)
26+
}
27+
2528
fs.writeFileSync(path.join(npm3Path, 'ipfs'))
2629
delete require.cache[require.resolve('../lib/node.js')]
2730
Node = require('../lib/node.js')
@@ -36,7 +39,10 @@ describe('ipfs executable path', function () {
3639
let npm2Path = '/tmp/ipfsd-ctl-test/node_modules/ipfsd-ctl/node_modules/go-ipfs-dep/go-ipfs'
3740

3841
mkdirp(npm2Path, (err) => {
39-
if (err) console.log(err)
42+
if (err) {
43+
console.log(err)
44+
}
45+
4046
fs.writeFileSync(path.join(npm2Path, 'ipfs'))
4147
delete require.cache[require.resolve('../lib/node.js')]
4248
Node = require('../lib/node.js')

0 commit comments

Comments
 (0)