Skip to content

Commit

Permalink
fix: code review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Mar 25, 2019
1 parent 3f87879 commit 5fd9427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ class Daemon {
*/
_cleanUnixSocket () {
return new Promise((resolve, reject) => {
const path = this._addr.toString().split('/unix')
const path = this._addr.getPath()
if (!path) {
return resolve()
}

rimraf(path[1], (err) => {
rimraf(path, (err) => {
if (err) {
return reject(err)
}
Expand Down

0 comments on commit 5fd9427

Please sign in to comment.