Skip to content

Conversation

@khalil-chermiti
Copy link

used jsdoc to document the following files:

  1. api/src/ap1/v2.js
  2. api/src/job.js

Copy link
Collaborator

@HexF HexF left a comment

Choose a reason for hiding this comment

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

Overall great work! Love the comments, just a little unhappy with the removal of brackets.
Although it technically may evaluate out the same, brackets for code clarity can never hurt.

Thanks for these changes though!

event_bus.emit('stderr', data);
} else if ((stderr.length + data.length) > this.runtime.output_max_size) {
} else if (
stderr.length + data.length >
Copy link
Collaborator

Choose a reason for hiding this comment

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

A little personal thing for me is putting expressions before comparing operators like this in brackets - in my mind it helps clear up order of operations.

event_bus.emit('stdout', data);
} else if ((stdout.length + data.length) > this.runtime.output_max_size) {
} else if (
stdout.length + data.length >
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same this as before with the brackets.

Copy link
Author

Choose a reason for hiding this comment

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

Thank for the review @HexF
The added curly braces must are unintended formatting mistake, I'll fix that

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