Skip to content

Commit

Permalink
chore: ignore read errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Nov 13, 2023
1 parent 5d0caa8 commit e9ab1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/sponsor/pulsares.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func readSerial() (string, error) {
})

b := make([]byte, 512)
n, err := f.Read(b)
n, _ := f.Read(b)

return string(b[:n]), err
return string(b[:n]), nil
}

0 comments on commit e9ab1ed

Please sign in to comment.