Skip to content

Commit

Permalink
Fix: loop over all lines in _file_index.txt file
Browse files Browse the repository at this point in the history
  • Loading branch information
clelange committed Sep 28, 2020
1 parent 5815b62 commit a00514f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func getFilesList(recordJSON map[string]interface{}, expand bool) ([]string, err
defer resp.Body.Close()

scanner := bufio.NewScanner(resp.Body)
for i := 0; scanner.Scan() && i < 5; i++ {
for i := 0; scanner.Scan(); i++ {
filesSliceExpanded = append(filesSliceExpanded, scanner.Text())
}
} else if strings.HasSuffix(filesSlice[idx], "_file_index.json") {
Expand Down

0 comments on commit a00514f

Please sign in to comment.