-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
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
chore: async/await and TS in lib/snyk-test/run-test #267
Conversation
src/lib/snyk-test/run-test.js
Outdated
if (policyLocations.length === 0) { | ||
return payload; | ||
|
||
spinner(spinnerLbl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await spinner(spinnerLbl);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, shouldn't that be in a try
?
src/lib/snyk-test/run-test.js
Outdated
var payload = await assemblePayload(root, options, policyLocations); | ||
var filesystemPolicy = payload.body && !!payload.body.policy; | ||
|
||
spinner(spinnerLbl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await
here?
src/lib/snyk-test/run-test.js
Outdated
|
||
return res; | ||
} finally { | ||
spinner.clear(spinnerLbl)(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await
?
56d0518
to
a7cdc42
Compare
a7cdc42
to
083172f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't review the TS part, only the async/await
🎉 This PR is included in version 1.108.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
because it's about time