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

Prefer a dictionary to ternary logic #60

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

jsf9k
Copy link
Member

@jsf9k jsf9k commented Jun 17, 2024

🗣 Description

This pull request removes the ternary logic that determines the architecture of the system package to install and instead uses a dictionary.

💭 Motivation and context

The dictionary can handle more than two cases (should that ever be required) and is cleaner.

🧪 Testing

All automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

@jsf9k jsf9k added the improvement This issue or pull request will add or improve functionality, maintainability, or ease of use label Jun 17, 2024
@jsf9k jsf9k self-assigned this Jun 17, 2024
The dictionary can handle more than two cases (should that ever be
required) and is cleaner.
@jsf9k jsf9k force-pushed the improvement/prefer-dict-to-ternary-logic branch from 07a6319 to 8ce82fc Compare June 17, 2024 17:57
@jsf9k
Copy link
Member Author

jsf9k commented Jun 17, 2024

The failing Fedora 40 checks will be fixed by #58.

@jsf9k jsf9k marked this pull request as ready for review June 17, 2024 19:03
@jsf9k jsf9k requested a review from a team June 17, 2024 19:04
@jsf9k jsf9k enabled auto-merge June 17, 2024 19:04
Copy link
Member

@mcdonnnj mcdonnnj left a comment

Choose a reason for hiding this comment

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

Nice 👍

@jsf9k jsf9k merged commit 6fdb83f into develop Jun 18, 2024
49 of 53 checks passed
@jsf9k jsf9k deleted the improvement/prefer-dict-to-ternary-logic branch June 18, 2024 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement This issue or pull request will add or improve functionality, maintainability, or ease of use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants