Skip to content

Conversation

@trolit
Copy link
Owner

@trolit trolit commented Jul 31, 2022

No description provided.

if (a === 1) {
console.log('P');
} else if (a === 2) console.log('D');
else console.log('G');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This single-line block should be wrapped with curly braces.

} else if (a === 2) console.log('D');
else console.log('G');

for (let index = 0; index < 15; index++) console.log(index);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This single-line block should be wrapped with curly braces.

if (a < 15) {
const e = 19;

if (a === 10) console.log('test2');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This single-line block should be wrapped with curly braces.

Comment on lines +22 to +23
do console.log('a');
while (1);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This single-line block should be wrapped with curly braces.

console.log('AAA');
}

while (a < 100) console.log('AAA');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This single-line block should be wrapped with curly braces.

@patchron
Copy link

patchron bot commented Jul 31, 2022

pull request review completed

💬 5 comment(s) require attention.
🔨 1 commit(s)
➕ 33 additions
➖ 0 deletions
➗ 1 changed files

@trolit trolit force-pushed the main branch 3 times, most recently from 459394f to d8a500d Compare September 2, 2022 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants