File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- var fs = require ( 'fs-extra' ) ;
2- var os = require ( 'os' ) ;
3- var path = require ( 'path' ) ;
1+ var fs = require ( 'fs-extra' ) ;
2+ var os = require ( 'os' ) ;
43
54var FileError = require ( '../errors/file_error' ) ;
65
@@ -27,7 +26,7 @@ FindFiles.prototype.setPath = function(path) {
2726 if ( path ) {
2827 this . path = path ;
2928 }
30- }
29+ } ;
3130
3231/**
3332 * Set exclude filters
@@ -38,7 +37,7 @@ FindFiles.prototype.setExcludeFilters = function(excludeFilters) {
3837 if ( excludeFilters ) {
3938 this . excludeFilters = excludeFilters ;
4039 }
41- }
40+ } ;
4241
4342/**
4443 * Set include filters
@@ -49,7 +48,7 @@ FindFiles.prototype.setIncludeFilters = function(includeFilters) {
4948 if ( includeFilters ) {
5049 this . includeFilters = includeFilters ;
5150 }
52- }
51+ } ;
5352
5453/**
5554 * Search files recursivly and filter by include / exlude filters
@@ -60,7 +59,7 @@ FindFiles.prototype.search = function() {
6059 var self = this ;
6160 var files = [ ] ;
6261 try {
63- files = fs . walkSync ( self . path )
62+ files = fs . walkSync ( self . path ) ;
6463
6564 // create RegExp Include Filter List
6665 var regExpIncludeFilters = [ ] ;
@@ -136,10 +135,10 @@ FindFiles.prototype.search = function() {
136135 // remove source path prefix
137136 if ( self . path !== './' ) {
138137 files = files . map ( function ( filename ) {
139- return filename . substr ( self . path . length )
140- } )
138+ return filename . substr ( self . path . length ) ;
139+ } ) ;
141140 }
142141 }
143142
144143 return files ;
145- }
144+ } ;
You can’t perform that action at this time.
0 commit comments