Skip to content

Commit

Permalink
fix: add error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Jun 3, 2024
1 parent 8ebffb1 commit 035d302
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ func setupReader(url string, preferCache bool) *gofeed.Feed {
// GetAllContent fetches the content of all URLs and returns it as a slice of Feeds
func GetAllContent(urls []string, preferCache bool) Feeds {
if !preferCache {
WriteCacheTime()
err := WriteCacheTime()
if err != nil {
log.Fatalf("could not check cache: %v", err)
}
}

// Create a wait group to wait for all goroutines to finish
Expand Down

0 comments on commit 035d302

Please sign in to comment.