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

Make samples compatible with Node 6 #73

Merged
merged 2 commits into from
Jun 11, 2018
Merged

Make samples compatible with Node 6 #73

merged 2 commits into from
Jun 11, 2018

Conversation

lindydonna
Copy link
Contributor

No description provided.

@lindydonna lindydonna requested a review from lukehoban June 7, 2018 01:22
Copy link
Member

@lukehoban lukehoban left a comment

Choose a reason for hiding this comment

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

Great - code actually looks really reasonable after these changes, luckily none of these were particularly "ugly" cases (conditionals, loops, etc.). And great to support older Node versions here now!

environment: {
"S3_BUCKET": bucketName.get(),
"INPUT_VIDEO": file,
"TIME_OFFSET": framePos,
"OUTPUT_FILE": thumbnailFile,
},
}).then(() => { // If using Node 8, can change this to `async/await`
Copy link
Member

Choose a reason for hiding this comment

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

I'd just leave off the comment - that will be clear enough to anyone who is interested in using async/await. (If all JavaScript code which could potentially use async/await needed a comment like this - there would be a lot of comments! :-))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@joeduffy
Copy link
Member

joeduffy commented Jun 9, 2018

LGTM, ready to merge?

@lindydonna lindydonna merged commit 7707585 into master Jun 11, 2018
@pgavlin pgavlin deleted the lindydonna/node6 branch June 12, 2018 22:05
ramene pushed a commit to ramene/pulumi-kubeflow-ml that referenced this pull request Sep 7, 2019
* Make samples compatible with Node 6
ramene pushed a commit to ramene/pulumi-kubeflow-ml that referenced this pull request Sep 13, 2019
* Make samples compatible with Node 6
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.

None yet

3 participants