Skip to content

Commit

Permalink
fix defer
Browse files Browse the repository at this point in the history
  • Loading branch information
tillson committed Apr 12, 2023
1 parent da2a3bc commit 468b77b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/app/keyword_scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,11 @@ func ScanAndPrintResult(client *http.Client, repo RepoSearchResult) {
if scannedRepos[repo.Repo] {
return
}
defer SearchWaitGroup.Done()
var resultString string
if !GetFlags().FastMode {
base := GetRawURLForSearchResult(repo)
defer SearchWaitGroup.Done()

data, err := DownloadRawFile(client, base, repo)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 468b77b

Please sign in to comment.