Skip to content
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

Merged
merged 2 commits into from
Nov 8, 2018

Conversation

michael-go
Copy link
Contributor

because it's about time

@michael-go michael-go self-assigned this Nov 8, 2018
if (policyLocations.length === 0) {
return payload;

spinner(spinnerLbl);
Copy link
Contributor

Choose a reason for hiding this comment

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

await spinner(spinnerLbl); ?

Copy link
Contributor

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?

var payload = await assemblePayload(root, options, policyLocations);
var filesystemPolicy = payload.body && !!payload.body.policy;

spinner(spinnerLbl);
Copy link
Contributor

Choose a reason for hiding this comment

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

await here?


return res;
} finally {
spinner.clear(spinnerLbl)();
Copy link
Contributor

Choose a reason for hiding this comment

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

await?

@michael-go michael-go force-pushed the chore/modernize-run-test branch from 56d0518 to a7cdc42 Compare November 8, 2018 16:16
@michael-go michael-go force-pushed the chore/modernize-run-test branch from a7cdc42 to 083172f Compare November 8, 2018 16:26
Copy link
Contributor

@Shesekino Shesekino left a 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

@michael-go michael-go merged commit c88bdce into master Nov 8, 2018
@michael-go michael-go deleted the chore/modernize-run-test branch November 8, 2018 16:40
@snyksec
Copy link

snyksec commented Nov 8, 2018

🎉 This PR is included in version 1.108.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants