You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Do the coding guidelines (or general cFS custom) require all else if constructs to have a final 'catch all' else block?
If so, there are a couple of remaining cases here in PSP that are missing one.
Suggestion
1st case can simply be replaced by an else (there are only 2 options for the validity flag) or just leave as is, but add an empty else at the end to make it explicit).
Describe the bug
Do the coding guidelines (or general cFS custom) require all
else if
constructs to have a final 'catch all'else
block?If so, there are a couple of remaining cases here in PSP that are missing one.
Code snips
PSP/fsw/pc-linux/src/cfe_psp_start.c
Lines 378 to 405 in 6fceb13
Suggestion
1st case can simply be replaced by an
else
(there are only 2 options for the validity flag) or just leave as is, but add an emptyelse
at the end to make it explicit).Note: there is 1 more case in the test code
Reporter Info
Avi Weiss @thnkslprpt
The text was updated successfully, but these errors were encountered: