Skip to content

Commit

Permalink
Fix #1933, Remove unreachable/dead branch in CFE_ES_RunPerfLogDump()
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Jul 18, 2023
1 parent a8b20ac commit 870c878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ jobs:
- name: Confirm Minimum Coverage
run: |
missed_branches=52
missed_lines=18
missed_branches=50
missed_lines=17
branch_nums=$(grep -A 3 "Overall coverage rate" lcov_out.txt | grep branches | grep -oP "[0-9]+[0-9]*")
line_nums=$(grep -A 3 "Overall coverage rate" lcov_out.txt | grep lines | grep -oP "[0-9]+[0-9]*")
Expand Down
6 changes: 1 addition & 5 deletions modules/es/fsw/src/cfe_es_perf.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,7 @@ bool CFE_ES_RunPerfLogDump(uint32 ElapsedTime, void *Arg)
{
CFE_ES_FileWriteByteCntErr(State->DataFileName, BlockSize, Status);

/* skip to cleanup */
if (State->CurrentState < CFE_ES_PerfDumpState_CLEANUP)
{
State->PendingState = CFE_ES_PerfDumpState_CLEANUP;
}
State->PendingState = CFE_ES_PerfDumpState_CLEANUP;
}
else
{
Expand Down

0 comments on commit 870c878

Please sign in to comment.