Hacker News new | ask | show | jobs
by kgwxd 2682 days ago
Agreed it should, but that doesn't seem to have been the cause of the issue. Looks there there was originally only one statement after the if but a new one had been added, so the braces were also added.
1 comments

It's a good practice to have the braces all the time to avoid making mistakes as it's easier to add and remove lines in it.