Skip to content

Commit 2d1bdeb

Browse files
simoesphillu
authored andcommitted
Fix excludes when quiet is turned on
with quiet parameter turned on the excludes were ignored
1 parent 014886d commit 2d1bdeb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scanner/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ func main() {
151151
fmt.Fprintf(errFile, "%s: %s\n", path, err)
152152
return nil
153153
}
154-
if excludes.Has(path) && !quiet {
155-
fmt.Fprintf(logFile, "Skipping %s\n", path)
154+
if excludes.Has(path){
155+
if !quiet {
156+
fmt.Fprintf(logFile, "Skipping %s\n", path)
157+
}
156158
return filepath.SkipDir
157159
}
158160
if info.IsDir() {

0 commit comments

Comments
 (0)