Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
feat(rm): switched to promises
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Switches to a Promise-based API and removes callback stuff
  • Loading branch information
zkat committed Feb 27, 2017
1 parent 97d48de commit a000d24
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/content/rm.js
@@ -1,9 +1,11 @@
'use strict'

var Promise = require('bluebird')

var contentPath = require('./path')
var rimraf = require('rimraf')
var rimraf = Promise.promisify(require('rimraf'))

module.exports = rm
function rm (cache, address, cb) {
rimraf(contentPath(cache, address), cb)
function rm (cache, address) {
return rimraf(contentPath(cache, address))
}

0 comments on commit a000d24

Please sign in to comment.