Skip to content

Commit

Permalink
Merge pull request #13 from willscott/master
Browse files Browse the repository at this point in the history
Fix Node 0.11 error when path is frozen.
  • Loading branch information
vesln committed Dec 23, 2013
2 parents 52d2365 + f9fc8cb commit db294b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/detector.js
Expand Up @@ -20,7 +20,7 @@
var detector = module.exports;

var normalize = function(path) {
var last = Array.prototype.pop.apply(path);
var last = path[path.length - 1];

if (process.platform !== "win32") {
if (last !== '/') {
Expand Down

0 comments on commit db294b1

Please sign in to comment.