Skip to content

Commit a00514f

Browse files
committed
Fix: loop over all lines in _file_index.txt file
1 parent 5815b62 commit a00514f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func getFilesList(recordJSON map[string]interface{}, expand bool) ([]string, err
156156
defer resp.Body.Close()
157157

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

0 commit comments

Comments
 (0)