Skip to content

Refactor SAMPLE_APP_Init and SAMPLE_APP_Process to remove multiple returns #197

@thnkslprpt

Description

@thnkslprpt

Describe the bug
SAMPLE_APP_Init() and SAMPLE_APP_Process() use multiple returns to manage control flow.

Expected behavior
The Sample App should exhibit/encourage best practice (according to the cFS), of which multiple returns does not comply.
Given that it is unnecessary in this case, would be worth refactoring to the recommended pattern with a single exit point from the function.

Reporter Info
Avi Weiss @thnkslprpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions