Skip to content

Commit

Permalink
Fix unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
WTFox committed Jun 20, 2020
1 parent 3f3a899 commit 6d25cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scout/scout.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func (s *Scout) DoSearch() ([]string, error) {
case map[string]interface{}:
s.parseMap(val, "")
default:
fmt.Errorf("could not parse JSON structure")
return []string{}, fmt.Errorf("could not parse JSON structure")
}
return s.found, nil
}
Expand Down

0 comments on commit 6d25cfa

Please sign in to comment.