Skip to content

Commit

Permalink
Remove redundant error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
m7kvqbe1 committed Mar 23, 2024
1 parent 521f621 commit 0e0ff1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,7 @@ func (s *Scraper) fetch() {
log.Printf("Error fetching %s: %v\n", r.Request.URL, err)
})

err := c.Visit(os.Getenv("URL"))
if err != nil {
log.Println("Error visiting:", err)
}
c.Visit(os.Getenv("URL"))
}

func (s *Scraper) success() {
Expand Down

0 comments on commit 0e0ff1a

Please sign in to comment.