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: remove unnecessary line #212

Merged
merged 1 commit into from Jan 13, 2022

Conversation

gozeloglu
Copy link
Contributor

  • nil check line removed from the newParserErrorfunction. Because it is called from other functions after checking the err whether its value is nil. That's why no need to check it again inside the function.

  • This change will also increase the code coverage from 98.2% to 98.7% with Go's code coverage metrics.

  • This line is one of the two uncovered lines wrt codecov.

Signed-off-by: Gökhan Özeloğlu gozeloglu@gmail.com

* `nil` check line removed from the `newParserError`function. Because it
is called from other functions after checking the `err` whether its value
is `nil`. That's why no need to check it again inside the function.

* This change will also increase the code coverage from 98.2% to 98.7%
with Go's code coverage metrics.

Signed-off-by: Gökhan Özeloğlu <gozeloglu@gmail.com>
@codecov
Copy link

codecov bot commented Jan 13, 2022

Codecov Report

Merging #212 (603d393) into main (92ee88e) will increase coverage by 0.85%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #212      +/-   ##
==========================================
+ Coverage   97.97%   98.83%   +0.85%     
==========================================
  Files           2        2              
  Lines         346      343       -3     
==========================================
  Hits          339      339              
+ Misses          6        4       -2     
+ Partials        1        0       -1     
Impacted Files Coverage Δ
env.go 98.80% <ø> (+0.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92ee88e...603d393. Read the comment docs.

@caarlos0 caarlos0 merged commit 8eb2e72 into caarlos0:main Jan 13, 2022
@caarlos0
Copy link
Owner

good catch! thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants