Skip to content

Commit

Permalink
testForExistingSourceFolder: fix a bug that discarded the gathered list
Browse files Browse the repository at this point in the history
  • Loading branch information
consolethinks committed Aug 13, 2024
1 parent 536181f commit add9f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasetIngestor/testForExistingSourceFolder.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func TestForExistingSourceFolder(folders []string, client *http.Client, APIServe
if err != nil {
return DatasetQuery{}, err
}
defer resp.Body.Close()
processedResp, err := processResponse(resp)
if err != nil {
return foundList, err
Expand Down Expand Up @@ -87,7 +88,6 @@ func makeRequest(client *http.Client, url string, filter string) (*http.Response
if err != nil {
return nil, err
}
defer resp.Body.Close()
return resp, nil
}

Expand Down

0 comments on commit add9f2e

Please sign in to comment.