Skip to content

Commit eaccf34

Browse files
committed
Tweak .path() method
1 parent 37d32f8 commit eaccf34

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,13 @@ BinWrapper.prototype.version = function (range) {
9696
};
9797

9898
/**
99-
* Get the binary path
99+
* Get path to the binary
100100
*
101101
* @api public
102102
*/
103103

104104
BinWrapper.prototype.path = function () {
105-
var dir = path.join(this.dest(), path.dirname(this.use()));
106-
var bin = path.basename(this.use());
107-
108-
return path.join(dir, bin);
105+
return path.join(this.dest(), this.use());
109106
};
110107

111108
/**

0 commit comments

Comments
 (0)