We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
myMethod(myInput) { const promises = []; promises.push(this.aMethod()); promises.push(this.anotherMethod()); return Promise.all(promises); }
should be
myMethod(myInput) { return Promise.all([ this.aMethod(), this.anotherMethod(), ]); }
For version 1, .push inside of if statement should be ignored and pass for the array:
.push
if statement
myMethod(myInput) { const promises = []; promises.push(this.aMethod()); if (myInput.someProp) { promises.push(this.anotherMethod()); } return Promise.all(promises); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
should be
For version 1,
.push
inside ofif statement
should be ignored and pass for the array:The text was updated successfully, but these errors were encountered: