Skip to content

Conversation

@tonyghita
Copy link

This change adds nil checks to exported methods of Reader, in order to prevent panics.

@oschwald
Copy link
Owner

I am not sure about this. The receiver will only be nil if there is a programming error, such as ignoring the error returned when opening a database. As far as I can recall, only a few places in the Go standard library check for nil receiver, and those are almost alway places where nil is a legitimate value.

@tonyghita
Copy link
Author

Yes, I think you're right. I'll close this... thanks for the library!

@tonyghita tonyghita closed this Jul 19, 2017
@tonyghita tonyghita deleted the add-nil-checks branch July 19, 2017 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants