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

Commit 2712154

Browse files
committed
Fix standard errors.
1 parent 30f992b commit 2712154

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

src/api/add-files.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
'use strict'
22

3-
const Wreck = require('wreck')
43
const addToDagNodesTransform = require('../add-to-dagnode-transform')
54

65
module.exports = (send) => {
@@ -10,7 +9,7 @@ module.exports = (send) => {
109
opts = {}
1110
}
1211

13-
if (typeof(path) !== 'string') {
12+
if (typeof (path) !== 'string') {
1413
return cb(new Error('"path" must be a string'))
1514
}
1615

src/api/add-url.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
'use strict'
22

33
const Wreck = require('wreck')
4-
const async = require('async')
5-
const DAGNode = require('ipfs-merkle-dag').DAGNode
64
const addToDagNodesTransform = require('../add-to-dagnode-transform')
75

86
module.exports = (send) => {

src/api/add.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict'
22

33
const isStream = require('isstream')
4-
const Wreck = require('wreck')
54
const addToDagNodesTransform = require('../add-to-dagnode-transform')
65

76
module.exports = (send) => {

0 commit comments

Comments
 (0)