Phil Salant
04d13d9945
fix linter errors thrown by `unconvert`, `goconst`, and `nakedret` (#3960)
* Remove unnecessary type conversions * Consolidate repeated strings into consts * Clothe return statements * Update blockchain/v1/reactor_fsm_test.go Co-Authored-By: Anton Kaliaev <anton.kalyaev@gmail.com> 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 |
5 years ago | |
---|---|---|
.. | ||
block.go | Merge branch 'develop' into jae/literefactor4 | 6 years ago |
errors.go | replace errors.go with github.com/pkg/errors (2/2) (#3890) | 5 years ago |
proof.go | General Merkle Proof (#2298) | 6 years ago |
proxy.go | fix lint | 6 years ago |
query.go | fix linter errors thrown by `unconvert`, `goconst`, and `nakedret` (#3960) | 5 years ago |
query_test.go | add staticcheck linting (#3828) | 5 years ago |
validate_test.go | types.NewCommit (#3275) | 6 years ago |
verifier.go | replace errors.go with github.com/pkg/errors (2/2) (#3890) | 5 years ago |
wrapper.go | fix linter errors thrown by `unconvert`, `goconst`, and `nakedret` (#3960) | 5 years ago |