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' ) ;
4
3
5
4
var FileError = require ( '../errors/file_error' ) ;
6
5
@@ -27,7 +26,7 @@ FindFiles.prototype.setPath = function(path) {
27
26
if ( path ) {
28
27
this . path = path ;
29
28
}
30
- }
29
+ } ;
31
30
32
31
/**
33
32
* Set exclude filters
@@ -38,7 +37,7 @@ FindFiles.prototype.setExcludeFilters = function(excludeFilters) {
38
37
if ( excludeFilters ) {
39
38
this . excludeFilters = excludeFilters ;
40
39
}
41
- }
40
+ } ;
42
41
43
42
/**
44
43
* Set include filters
@@ -49,7 +48,7 @@ FindFiles.prototype.setIncludeFilters = function(includeFilters) {
49
48
if ( includeFilters ) {
50
49
this . includeFilters = includeFilters ;
51
50
}
52
- }
51
+ } ;
53
52
54
53
/**
55
54
* Search files recursivly and filter by include / exlude filters
@@ -60,7 +59,7 @@ FindFiles.prototype.search = function() {
60
59
var self = this ;
61
60
var files = [ ] ;
62
61
try {
63
- files = fs . walkSync ( self . path )
62
+ files = fs . walkSync ( self . path ) ;
64
63
65
64
// create RegExp Include Filter List
66
65
var regExpIncludeFilters = [ ] ;
@@ -136,10 +135,10 @@ FindFiles.prototype.search = function() {
136
135
// remove source path prefix
137
136
if ( self . path !== './' ) {
138
137
files = files . map ( function ( filename ) {
139
- return filename . substr ( self . path . length )
140
- } )
138
+ return filename . substr ( self . path . length ) ;
139
+ } ) ;
141
140
}
142
141
}
143
142
144
143
return files ;
145
- }
144
+ } ;
You can’t perform that action at this time.
0 commit comments