Skip to content

Commit

Permalink
Fix a bug when listing target files
Browse files Browse the repository at this point in the history
  • Loading branch information
svent committed Jan 6, 2016
1 parent 865998a commit 9d9a293
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions output.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ import (

func resultHandler() {
for result := range global.resultsChan {
if options.TargetsOnly {
fmt.Println(result.target)
continue
}
global.totalTargetCount++
result.applyConditions()
printResult(result)
Expand Down
2 changes: 1 addition & 1 deletion sift.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ func processFileTargets() {
var reader io.Reader

if options.TargetsOnly {
fmt.Println(filepath)
global.resultsChan <- &Result{target: filepath}
continue
}

Expand Down

0 comments on commit 9d9a293

Please sign in to comment.