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

Add option to write output to a file and fix minor TypeScript coding style & formatting issues. #50

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

yilong-wang
Copy link
Contributor

@yilong-wang yilong-wang commented Mar 17, 2022

Previous PR cannot be updated for some reason. So I am creating a new one.

Can you help squash the commits on the UI before merging?

Comment on lines 320 to 324
if false_expr == "{}" {
"undefined".to_string()
} else {
false_expr
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

iirc: It's more idiomatic to use match. Also, I think the only time {} comes about is above in the None case -- so we can just replace to undefined there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks. That is indeed cleaner.

@yilong-wang
Copy link
Contributor Author

yilong-wang commented Mar 18, 2022

Just sent out new revision.

@iph iph merged commit 11461b1 into cdklabs:main Mar 18, 2022
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