Skip to content

Commit 6d25cfa

Browse files
committed
Fix unused variable
1 parent 3f3a899 commit 6d25cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/scout/scout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func (s *Scout) DoSearch() ([]string, error) {
2020
case map[string]interface{}:
2121
s.parseMap(val, "")
2222
default:
23-
fmt.Errorf("could not parse JSON structure")
23+
return []string{}, fmt.Errorf("could not parse JSON structure")
2424
}
2525
return s.found, nil
2626
}

0 commit comments

Comments
 (0)