attestantio / go-eth2-client

Apache License 2.0
102 stars 59 forks source link

Add nil checks to Versioned*BeaconBlock functions #111

Closed jtraglia closed 4 months ago

jtraglia commented 4 months ago

This PR makes these changes:

There are two competing style for these nil checks. I used whichever was more prevalent in the file. Personally I like the split conditionals better, but it doesn't really matter. If you'd like me to use the same style, I'd be happy to make the change.

I'm made this PR without reaching out first because I'm under the assumption these will never actually be nil.