Skip to content

Commit

Permalink
#46: List download: Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
0xERR0R committed May 11, 2020
1 parent 10c6909 commit 1d04fb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lists/list_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func readFile(file string) (io.ReadCloser, error) {
func processFile(link string, ch chan<- []string, wg *sync.WaitGroup) {
defer wg.Done()

var result []string
result := make([]string, 0)

var r io.ReadCloser

Expand Down
2 changes: 1 addition & 1 deletion lists/list_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ var _ = Describe("ListCache", func() {
}))
defer s.Close()
lists := map[string][]string{
"gr1": {s.URL},
"gr1": {s.URL, emptyFile.Name()},
}

timeout = 100 * time.Millisecond
Expand Down

0 comments on commit 1d04fb0

Please sign in to comment.