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

refactor: simplify cfn output logic #212

Merged
merged 1 commit into from
Oct 29, 2023
Merged

Conversation

blacha
Copy link
Member

@blacha blacha commented Oct 29, 2023

Motivation

Use syntatical sugar to reduce the number of explicit checks needed

Modification

  • Uses modern javascript syntax sugar
  • Avoids using !object or if(object) to prevent type conversions

Checklist

If not applicable, provide explanation of why.

  • Tests updated
  • Docs updated
  • Issue linked in Title

@blacha blacha requested review from a team as code owners October 29, 2023 21:31
@blacha blacha requested review from l0b0, amfage and MDavidson17 October 29, 2023 21:31
@blacha blacha force-pushed the refactor/simplfy-logic branch from 8825b39 to ed87f47 Compare October 29, 2023 21:32
@paulfouquet paulfouquet added this pull request to the merge queue Oct 29, 2023
Merged via the queue into master with commit 27e9752 Oct 29, 2023
2 checks passed
@paulfouquet paulfouquet deleted the refactor/simplfy-logic branch October 29, 2023 21:53
amfage pushed a commit that referenced this pull request Oct 30, 2023
#### Motivation

Use syntatical sugar to reduce the number of explicit checks needed

#### Modification

- Uses modern javascript syntax sugar  
- Avoids using `!object` or `if(object)` to prevent type conversions

#### Checklist

_If not applicable, provide explanation of why._

- [ ] Tests updated
- [ ] Docs updated
- [ ] Issue linked in Title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants