Skip to content

Commit d4a9584

Browse files
committed
Add fix apidoc#55
1 parent d9abcbe commit d4a9584

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/utils/find_files.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ FindFiles.prototype.search = function() {
136136
if (self.path !== './') {
137137
files = files.map( function(filename) {
138138
if (filename.startsWith(self.path)) {
139-
return filename.substr(self.path.length);
140-
} else {
141-
return filename;
139+
return filename.substr(self.path.length);
142140
}
141+
return filename;
143142
});
144143
}
145144
}

0 commit comments

Comments
 (0)