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

Refactor to switch-case; decrease indentation #122

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Refactor to switch-case; decrease indentation #122

merged 3 commits into from
Sep 5, 2023

Conversation

alexandear
Copy link
Contributor

This PR does refactorings:

  • change if-else if-else with switch-case;
  • change switch with single case to if;
  • decrease indentation by using continue.

@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Merging #122 (56f395a) into master (0d5a4c9) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #122      +/-   ##
==========================================
- Coverage   90.08%   90.06%   -0.02%     
==========================================
  Files           8        8              
  Lines         625      624       -1     
==========================================
- Hits          563      562       -1     
  Misses         43       43              
  Partials       19       19              
Flag Coverage Δ
unittests 90.06% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
reviser/file.go 94.79% <100.00%> (-0.02%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@incu6us incu6us merged commit 062693f into incu6us:master Sep 5, 2023
11 checks passed
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.

None yet

2 participants