Commit f2c5dee3 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'doc-add-multiline-if-without-braces' into 'master'

Add multi-line if without braces as bad example

See merge request gitlab-org/gitlab!30676
parents 28f5b35a fb58cbb7
...@@ -184,6 +184,9 @@ This can help to quickly understand the control flow. ...@@ -184,6 +184,9 @@ This can help to quickly understand the control flow.
// bad // bad
if (isThingNull) return ''; if (isThingNull) return '';
if (isThingNull)
return '';
// good // good
if (isThingNull) { if (isThingNull) {
return ''; return '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment