Skip to content

Conversation

@jeffWelling
Copy link
Owner

No description provided.

err = json.Unmarshal(ticketsJSON, &listOfTickets)
debug.DebugMessage(debugFlag, "ticketsJSON: "+string(ticketsJSON))
err = json.Unmarshal(ticketsJSON, &listOfTicketsAsAny)
if err != nil {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel there's way too much error handling. It interrupts the flow when reading the code. Is this a mandatory golang thing? In other languages, you just let exceptions bubble up to an exception handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants