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

Remove redundant err checking #7488

Merged
merged 2 commits into from
Oct 9, 2020
Merged

Conversation

farazdagi
Copy link
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

  • Removes redundant error checking (when if err { return err } else { return nil } can be simplified to return err). This issue has been found by DS

Which issues(s) does this PR fix?

N/A

Other notes for review

@farazdagi farazdagi requested a review from a team as a code owner October 9, 2020 21:51
@farazdagi farazdagi self-assigned this Oct 9, 2020
@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #7488 into master will decrease coverage by 0.60%.
The diff coverage is 87.50%.

@@            Coverage Diff             @@
##           master    #7488      +/-   ##
==========================================
- Coverage   61.01%   60.41%   -0.61%     
==========================================
  Files         427      427              
  Lines       31007    30351     -656     
==========================================
- Hits        18920    18336     -584     
+ Misses       9034     9021      -13     
+ Partials     3053     2994      -59     

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.

2 participants