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
2019-09-10 11:31:44 +04:00
Dev Ojha
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
Ethan Buchman
d55243f0e6
fix import paths
2018-07-01 22:36:49 -04:00
Jae Kwon
901b456151
P2P now works with Amino
2018-03-26 06:40:02 +02:00
Zach Ramsay
8f0237610e
linting errors: clean it all up
2017-11-27 22:39:11 +00:00
Zach Ramsay
331857c9e6
linting: apply errcheck part2
2017-11-27 22:39:11 +00:00
zramsay
bf5181d9ca
address PR comments
2017-05-30 13:27:08 -04:00
zramsay
cf31f8d06f
core: apply megacheck vet tool (unused, gosimple, staticcheck)
2017-05-29 23:11:40 -04:00
Anton Kaliaev
bc4e6566e7
[p2p] refactor upnp to use new logger
2017-05-13 10:24:59 +02:00
Ethan Buchman
57151d6043
p2p: use cmn instead of .
2017-05-04 22:43:55 -04:00
Ethan Buchman
23a6a6f8fc
move into p2p package
2017-04-21 18:07:52 -04:00
Jae Kwon
c4ed55d801
Refactor to move common libraries out of project
2015-10-22 17:39:06 -07:00
Ethan Buchman
bb4ca1407f
info->notice, debug->info
2015-07-19 22:44:40 +00:00
Jae Kwon
13b6508ecd
Package import path change
2015-04-01 17:30:16 -07:00
Ethan Buchman
60f166e823
tendermint2
2015-03-31 15:33:31 -07:00
Jae Kwon
0bfb389b35
change logger to log15
2014-12-29 18:09:06 -08:00
Jae Kwon
bff93107ef
UPNP + hairpin probing
2014-12-23 17:20:52 -08:00