You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the config forces omitting curly braces for the one-line block statements:
if(shouldInvoke){// error: Unnecessary { after 'if' condition.(curly)invoke();}
To fix the error we must write the condition in the following way:
if(shouldInvoke)invoke();
I suggest forcing the curly braces even for one-line condition/loop bodies because they make the code easier to read and we get a more consistent code style.
The text was updated successfully, but these errors were encountered:
Currently, the config forces omitting curly braces for the one-line block statements:
To fix the error we must write the condition in the following way:
I suggest forcing the curly braces even for one-line condition/loop bodies because they make the code easier to read and we get a more consistent code style.
The text was updated successfully, but these errors were encountered: