erigon-pulse/rpc
Alex Prut 86dd1f91dd 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
# Conflicts:
#	cmd/utils/flags.go
#	console/bridge.go
#	crypto/bls12381/g2.go
#	les/benchmark.go
#	les/lespay/server/balance.go
#	les/lespay/server/balance_tracker.go
#	les/lespay/server/prioritypool.go
#	les/odr_requests.go
#	les/serverpool.go
#	les/serverpool_test.go
#	p2p/nodestate/nodestate_test.go
#	trie/committer.go
2021-03-08 12:34:16 +01:00
..
testdata rpc: fix issue with null JSON-RPC messages (#21497) 2020-09-11 16:04:59 +02:00
allow_list_test.go Granular rpc control (Allow list for RPC daemon) (#1341) 2020-11-10 10:08:42 +01:00
allow_list.go Granular rpc control (Allow list for RPC daemon) (#1341) 2020-11-10 10:08:42 +01:00
client_example_test.go
client_test.go
client.go all: simplify nested complexity and if blocks ending with a return statement (#21854) 2021-03-08 12:34:16 +01:00
constants_unix_nocgo.go
constants_unix.go
doc.go
endpoints.go trie, rpc, cmd/geth: fix tests on 32-bit and windows + minor rpc fixes (#21871) 2021-03-08 12:28:54 +01:00
errors.go
handler.go Granular rpc control (Allow list for RPC daemon) (#1341) 2020-11-10 10:08:42 +01:00
helpers.go Rpcdaemon as lib (#940) 2020-08-19 12:46:20 +01:00
http_test.go
http.go
inproc.go
ipc_js.go
ipc_unix.go
ipc_windows.go
ipc.go
json.go rpc: fix issue with null JSON-RPC messages (#21497) 2020-09-11 16:04:59 +02:00
metrics.go
server_test.go
server.go Granular rpc control (Allow list for RPC daemon) (#1341) 2020-11-10 10:08:42 +01:00
service.go
stdio.go
subscription_test.go
subscription.go
testservice_test.go
types_test.go RPC method fixes (#1007) 2020-08-29 22:28:09 +01:00
types.go Ethstats (#1338) 2020-11-06 08:59:50 +01:00
websocket_test.go
websocket.go node: support expressive origin rules in ws.origins (#21481) 2021-03-08 12:28:31 +01:00