Closed athatheo closed 3 years ago
Yeap, I know.
i) I agree ii) Since there is only one statement, I omitted the curly braces. I thought (read?) that this is the cleaner way if there is only one statement.
Sure thing. You can accept this pull request for a quick fix :)
It's best practice to NEVER omit curly braces from if
statements.
The reasons are 2:
goto fail
fiasco! https://embeddedgurus.com/barr-code/2014/03/apples-gotofail-ssl-security-bug-was-easily-preventable/
Brackets: i) Make the code clearer. ii) Are crucial since if you don't include them, only the first line in the if will be executed.