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

Swap some if/else statements #104

Merged
merged 2 commits into from
Nov 17, 2022
Merged

Swap some if/else statements #104

merged 2 commits into from
Nov 17, 2022

Conversation

ThibFrgsGmz
Copy link
Contributor

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

Change Description

This PR aims to swap some if/else branches of conditionals.

P.S. I deleted duplicate code I saw on the fly while browsing a file.

Rationale

This makes it easier to read the function: if the first statement is not satisfied, we leave the function.

Testing/Review Recommendations

void

Future Work

void

@LeStarch LeStarch merged commit 3a90052 into nasa:devel Nov 17, 2022
@ThibFrgsGmz ThibFrgsGmz deleted the feat/swap-if-statement branch November 18, 2022 14:42
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