Skip to content

Commit

Permalink
Fixed ineffectual assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Feb 3, 2021
1 parent b5f6329 commit b52bcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trenitalia.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func searchAndGetTrain(trainID string) string {
return ""
}

body, err := ioutil.ReadAll(resp.Body)
body, _ := ioutil.ReadAll(resp.Body)

out := string(body)
_ = resp.Body.Close()
Expand Down

0 comments on commit b52bcfe

Please sign in to comment.