Skip to content

Commit

Permalink
Add fix apidoc#55
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Jan 23, 2017
1 parent d9abcbe commit d4a9584
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/utils/find_files.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ FindFiles.prototype.search = function() {
if (self.path !== './') {
files = files.map( function(filename) {
if (filename.startsWith(self.path)) {
return filename.substr(self.path.length);
} else {
return filename;
return filename.substr(self.path.length);
}
return filename;
});
}
}
Expand Down

0 comments on commit d4a9584

Please sign in to comment.