go-ethereum/p2p/nat
Alex Prut c92faee66e
all: simplify nested complexity and if blocks ending with a return statement (#21854)
Changes:

    Simplify nested complexity
    If an if blocks ends with a return statement then remove the else nesting.

Most of the changes has also been reported in golint https://goreportcard.com/report/github.com/ethereum/go-ethereum#golint
2020-11-25 09:24:50 +01:00
..
nat_test.go p2p, p2p/discover: add signed ENR generation (#17753) 2018-10-12 11:47:24 +02:00
nat.go all: simplify nested complexity and if blocks ending with a return statement (#21854) 2020-11-25 09:24:50 +01:00
natpmp.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
natupnp_test.go p2p/nat: disable UPnP test on windows 2015-08-06 17:18:59 +02:00
natupnp.go p2p/nat: limit UPNP request concurrency (#21390) 2020-08-05 09:51:37 +02:00