mactsouk / mGo4th

Source code for Mastering Go, 4th edition.
MIT License
38 stars 25 forks source link

Ch14 - table.go - No new err to check #8

Closed rgerardi closed 6 months ago

rgerardi commented 6 months ago

Ch14 file table.go on line 52, the error check condition is not needed (and impossible) since there' s no new error assignment, err will always be nil

bwriter := bufio.NewWriterSize(f, b)
if err != nil {
    return err
}
mactsouk commented 6 months ago

@rgerardi Thank you!