Skip to content

Fix linter errors thrown by unconvert, goconst, and nakedret#3960

Merged
melekes merged 5 commits intotendermint:masterfrom
PSalant726:go-green/unconvert-goconst-nakedret
Sep 10, 2019
Merged

Fix linter errors thrown by unconvert, goconst, and nakedret#3960
melekes merged 5 commits intotendermint:masterfrom
PSalant726:go-green/unconvert-goconst-nakedret

Conversation

@PSalant726
Copy link
Contributor

  • Referenced an issue explaining the need for the change

This PR repairs linter errors seen when running the following commands:
golangci-lint run --no-config --disable-all=true --enable=unconvert
golangci-lint run --no-config --disable-all=true --enable=goconst
golangci-lint run --no-config --disable-all=true --enable=nakedret

Contributes to #3262

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to Tendermint 👍

Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com>
@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@22000c6). Click here to learn what that means.
The diff coverage is 56.25%.

@@            Coverage Diff            @@
##             master    #3960   +/-   ##
=========================================
  Coverage          ?   66.89%           
=========================================
  Files             ?      219           
  Lines             ?    18478           
  Branches          ?        0           
=========================================
  Hits              ?    12361           
  Misses            ?     5192           
  Partials          ?      925
Impacted Files Coverage Δ
lite/proxy/wrapper.go 0% <0%> (ø)
crypto/merkle/proof_simple_value.go 0% <0%> (ø)
rpc/core/tx.go 0% <0%> (ø)
lite/proxy/query.go 7.35% <0%> (ø)
p2p/pex/addrbook.go 67.83% <0%> (ø)
consensus/state.go 80.18% <100%> (ø)
abci/example/kvstore/persistent_kvstore.go 58.03% <100%> (ø)
p2p/conn/connection.go 80.71% <100%> (ø)
consensus/replay.go 71.77% <100%> (ø)
tools/tm-monitor/monitor/network.go 90.42% <100%> (ø)
... and 2 more

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍃 🌴 🌤

@melekes melekes merged commit 04d13d9 into tendermint:master Sep 10, 2019
melekes added a commit that referenced this pull request Sep 10, 2019
This should've been a part of
#3960, but I forgot about
it while reviewing.

A good programmer is someone who always looks both ways before crossing
a one-way street. - Doug Linder
melekes added a commit that referenced this pull request Sep 10, 2019
This should've been a part of
#3960, but I forgot about
it while reviewing.

A good programmer is someone who always looks both ways before crossing
a one-way street. - Doug Linder
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.

4 participants