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

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Sep 12, 2018
1 parent 405a7e6 commit e5c1d80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
"get-folder-size": "^2.0.0",
"glob": "^7.1.2",
"hapi": "^16.6.2",
"hapi-set-header": "^1.0.2",
"hoek": "^5.0.3",
"human-to-milliseconds": "^1.0.0",
"interface-datastore": "~0.4.2",
Expand Down
10 changes: 5 additions & 5 deletions src/http/api/routes/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,11 @@ module.exports = (server) => {
}

console.log('Finished adding')
// del(pattern, { force: true })
// .then(paths => {
// console.log('Deleted files and folders:\n', paths.join('\n'))
// })
// .catch(console.error)
del(pattern, { force: true })
.then(paths => {
console.log('Deleted files and folders:\n', paths.join('\n'))
})
.catch(console.error)
}
)
} else {
Expand Down
1 change: 0 additions & 1 deletion src/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const series = require('async/series')
const Hapi = require('hapi')
const debug = require('debug')
const multiaddr = require('multiaddr')
const setHeader = require('hapi-set-header')
const once = require('once')

const IPFS = require('../core')
Expand Down

0 comments on commit e5c1d80

Please sign in to comment.