Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
Co-Authored-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
tpoisseau and targos authored Oct 24, 2019
commit c1cbd68237af859e10600c07d2a4aaefbd1e1cc2
4 changes: 2 additions & 2 deletions tools/doc/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function main() {

main()
.then((tasks) => {
// Filter tasks rejected
// Filter rejected tasks
const errors = tasks.filter(({ status }) => status === 'rejected')
.map(({ reason }) => reason);

Expand All @@ -108,7 +108,7 @@ main()
return process.exit(1);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

technically you don't need a return here :P

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I know, but I think it's more clear and concistent whith early return pattern (I don't know the real name)

}

// Else with code 1
// Else with code 0
process.exit(0);
})
.catch((error) => {
Expand Down