Multi-line if statements without braces
Closed this issue · 0 comments
danxexe commented
Multi-line if statements without braces are kinda dangerous:
if (!regex.test(key))
throw new Ebanx.errors.invalidValueField('Invalid PublishableKey.', 'PublishableKey');
The recommendation is to either keep the condition and the body on the same line or to add braces around the body.