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

Refactoring conditional assignement with ternary operator #62

Merged
merged 1 commit into from
May 4, 2022
Merged

Refactoring conditional assignement with ternary operator #62

merged 1 commit into from
May 4, 2022

Conversation

ThibFrgsGmz
Copy link
Contributor

Originating Project/Creator
Affected Component
Affected Architectures(s)
Related Issue(s)
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

This PR includes the following change:

  • Replaces conditional assignment to a variable with an if expression [ref]

Rationale

The ternary operator in Python is represented by the conditional expression syntax; using this syntax is more concise.

Testing/Review Recommendations

(void)

Future Work

(void)

@LeStarch LeStarch merged commit 2875043 into nasa:devel May 4, 2022
@ThibFrgsGmz ThibFrgsGmz deleted the feat/assign-if-expr branch July 20, 2022 21:29
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

2 participants