It's just instinct. Older versions of go used to complain that the function doesn't return a value if there was no return at the end of the function. But that problem is fixed now. So, it should be fine to move that return inside the default.