Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit d736bc2

Browse files
committed
chore: fix up linting ahead of eslint 5
1 parent bf216a9 commit d736bc2

11 files changed

+11
-12
lines changed

src/importer/dir-flat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class DirFlat extends Dir {
6161
[
6262
(callback) => DAGNode.create(dir.marshal(), links, callback),
6363
(node, callback) => persist(node, ipld, this._options, callback),
64-
({cid, node}, callback) => {
64+
({ cid, node }, callback) => {
6565
this.multihash = cid.buffer
6666
this.size = node.size
6767
const pushable = {

src/importer/dir-sharded.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class DirSharded extends Dir {
5454

5555
return callback()
5656
} catch (err) {
57-
console.error(err)
5857
return callback(err)
5958
}
6059
}

test/builder-dir-sharding.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = (repo) => {
2424

2525
before(() => {
2626
const bs = new BlockService(repo)
27-
ipld = new Ipld({blockService: bs})
27+
ipld = new Ipld({ blockService: bs })
2828
})
2929

3030
describe('basic dirbuilder', () => {

test/builder-only-hash.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (repo) => {
1717

1818
before(() => {
1919
const bs = new BlockService(repo)
20-
ipld = new Ipld({blockService: bs})
20+
ipld = new Ipld({ blockService: bs })
2121
})
2222

2323
it('will only chunk and hash if passed an "onlyHash" option', (done) => {

test/chunker-rabin-browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('chunker: rabin browser', function () {
1919

2020
pull(
2121
pull.values([b1, b2, b3]),
22-
chunker({minChunkSize: 48, avgChunkSize: 96, maxChunkSize: 192}),
22+
chunker({ minChunkSize: 48, avgChunkSize: 96, maxChunkSize: 192 }),
2323
pull.collect((err) => {
2424
expect(err).to.exist()
2525
expect(err.message).to.include('Rabin chunker not available')

test/chunker-rabin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('chunker: rabin', function () {
3131

3232
pull(
3333
pull.values([b1, b2, b3]),
34-
chunker({minChunkSize: 48, avgChunkSize: 96, maxChunkSize: 192}),
34+
chunker({ minChunkSize: 48, avgChunkSize: 96, maxChunkSize: 192 }),
3535
pull.collect((err, chunks) => {
3636
expect(err).to.not.exist()
3737
chunks.forEach((chunk) => {
@@ -48,7 +48,7 @@ describe('chunker: rabin', function () {
4848
b1.fill('a')
4949
pull(
5050
pull.values([b1]),
51-
chunker({avgChunkSize: 256}),
51+
chunker({ avgChunkSize: 256 }),
5252
pull.collect((err, chunks) => {
5353
expect(err).to.not.exist()
5454
chunks.forEach((chunk) => {

test/hash-parity-with-go-ipfs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = (repo) => {
3535

3636
before(() => {
3737
const bs = new BlockService(repo)
38-
ipld = new Ipld({blockService: bs})
38+
ipld = new Ipld({ blockService: bs })
3939
})
4040

4141
it('yields the same tree as go-ipfs', function (done) {

test/import-export-nested-dir.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = (repo) => {
2020

2121
before(() => {
2222
const bs = new BlockService(repo)
23-
ipld = new Ipld({blockService: bs})
23+
ipld = new Ipld({ blockService: bs })
2424
})
2525

2626
it('imports', function (done) {

test/import-export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = (repo) => {
4444

4545
before(() => {
4646
const bs = new BlockService(repo)
47-
ipld = new Ipld({blockService: bs})
47+
ipld = new Ipld({ blockService: bs })
4848
})
4949

5050
it('import and export', (done) => {

test/importer-flush.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = (repo) => {
1717

1818
before(() => {
1919
const bs = new BlockService(repo)
20-
ipld = new Ipld({blockService: bs})
20+
ipld = new Ipld({ blockService: bs })
2121
})
2222

2323
it('can push a single root file and flush yields no dirs', (done) => {

test/importer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ module.exports = (repo) => {
243243

244244
before(() => {
245245
const bs = new BlockService(repo)
246-
ipld = new Ipld({blockService: bs})
246+
ipld = new Ipld({ blockService: bs })
247247
})
248248

249249
it('fails on bad input', (done) => {

0 commit comments

Comments
 (0)