Skip to content

Conversation

Vpartyzan
Copy link

Тихонов Максим added 3 commits July 1, 2020 09:56
Copy link
Collaborator

@vramaniuk vramaniuk left a comment

Choose a reason for hiding this comment

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

I'll mark the PR as "Draft", please click "ready for review" when it will be finished. Thank you!

Comment on lines 210 to 214
return (res.done)
? Promise.resolve(res.value)
: Promise.resolve(res.value).then((res) => {
return handle(gen.next(res));
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

avoid this code style, if-else is more readable than multiple conditional operators ? :

function* get99BottlesOfBeer() {
throw new Error('Not implemented');

for (let i = 99; i>2; i--) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

spaces around operators

@vramaniuk vramaniuk marked this pull request as draft August 18, 2020 12:22
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