Skip to content

Commit

Permalink
fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
arrowrowe committed Sep 24, 2016
1 parent efe134f commit b9ff5e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = function (report, www) {
}
}

// Ensure `www.substr(-1) === '/'` is constant.
www = path.resolve(www) + (www.substr(-1) === '/' ? '/' : '');
// Ensure `www.substr(-1) === path.sep` is constant.
www = path.resolve(www) + (www.substr(-1) === path.sep ? path.sep : '');

fr(function (pkg) {
pkg.output = getOutput(pkg, www);
Expand Down

1 comment on commit b9ff5e3

@ComMouse
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job =w=

Please sign in to comment.