Skip to content

Commit

Permalink
Small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
haccht committed Nov 9, 2023
1 parent 65b8178 commit a523199
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func run() error {
vals = append(vals, val)
}
}
if scanner.Err() != nil {
return scanner.Err()
if err := scanner.Err(); err != nil {
return err
}

sort.Float64s(vals)
Expand Down

0 comments on commit a523199

Please sign in to comment.