Skip to content

Commit

Permalink
Merge pull request #2330 from thnkslprpt:fix-1933-remove-dead-branch-…
Browse files Browse the repository at this point in the history
…in-CFE_ES_RunPerfLogDump

Fix #1933, Remove unreachable/dead branch in CFE_ES_RunPerfLogDump()
  • Loading branch information
dzbaker committed Feb 23, 2024
2 parents daf86b9 + 870c878 commit 171fea3
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 @@ -461,11 +461,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 171fea3

Please sign in to comment.