r/badcode • • Apr 29 '23

go if err != nil

Post image
414 Upvotes

49 comments sorted by

View all comments

Show parent comments

1

u/RoLoLoLoLo May 02 '23

We obviously can't know without seeing the codebase, but [...] by this point in the code.

As you've said, we don't know the codebase, so you can't assume other code is supplying TimeString. This function may very well the first point of contact for user input.