@jmoiron Returning early[1] aka Guard Clauses[2] is a very common code review comment of mine. Putting error and edge cases first makes people more thoughtful of them. With #golang's defer, you don't need single-exit for cleanup.
[1] https://t.co/kyuXjkpWvM
[2] https://t.co/bQgbUB4bw4