Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit b56edc0

Browse files
committed
refactor(codestyle): make CI happy by not failing linting
1 parent 1658106 commit b56edc0

File tree

12 files changed

+20
-5
lines changed

12 files changed

+20
-5
lines changed

src/cli/commands/files/add.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ function checkPath (inPath, recursive) {
3434
return inPath
3535
}
3636

37-
module.exports = {
37+
module.exports = command
38+
39+
const command = {
3840
command: 'add <file>',
3941

4042
describe: 'Add a file to IPFS using the UnixFS data format',
@@ -50,7 +52,9 @@ module.exports = {
5052
handler (argv) {
5153
let inPath = checkPath(argv.file, argv.recursive)
5254

53-
utils.getIPFS((err, ipfs) => {
55+
utils.getIPFS(gotIPFS)
56+
57+
function gotIPFS (err, ipfs) {
5458
if (err) {
5559
throw err
5660
}
@@ -116,6 +120,6 @@ module.exports = {
116120
})
117121
})
118122
})
119-
})
123+
}
120124
}
121125
}

test/cli/test-bootstrap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/cli/test-object.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/cli/test-swarm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/core/both/test-bitswap.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/core/both/test-init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/core/node-only/test-init.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/http-api/inject/test-block.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/http-api/inject/test-object.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

test/http-api/inject/test-swarm.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 8] */
23
'use strict'
34

45
const expect = require('chai').expect

0 commit comments

Comments
 (0)