prysm-pulse/beacon-chain/rpc/beacon
rkapka 1f21e196b6
Fix multiple anti-patterns from DeepSource analysis (#6951)
* Merge variable declaration and assignment
* Use result of type assertion to simplify cases
* Replace call to bytes.Compare with bytes.Equal
* Drop unnecessary use of the blank identifier
* Replace x.Sub(time.Now()) with time.Until(x)
* Function literal can be simplified
* Use a single append to concatenate two slices
* Replace time.Now().Sub(x) with time.Since(x)
* Omit comparison with boolean constant
* Omit redundant nil check on slices
* Nested if can be replaced with else-if
* Function call can be replaced with helper function
* Omit redundant control flow
* Use plain channel send or receive
* Simplify returning boolean expression
* Merge branch 'origin-master' into fix-antipatterns
* Merge branch 'master' into fix-antipatterns
2020-08-10 16:16:45 +00:00
..
assignments_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
assignments.go Improve make() capacity allocations (#6517) 2020-07-09 15:50:58 +00:00
attestations_test.go Simplify make call by omitting redundant arguments (#6949) 2020-08-10 11:06:53 +00:00
attestations.go Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
beacon_test.go Move MaxRPCPageSize flag from beacon node to shared/cmd (#6297) 2020-06-29 09:17:24 -05:00
blocks_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
blocks.go Use correct context for chainHeadRetrieval (#6678) 2020-07-22 16:20:20 +00:00
BUILD.bazel Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
committees_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
committees.go Improve make() capacity allocations (#6517) 2020-07-09 15:50:58 +00:00
config_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
config.go Add Endpoint to Return Current Chain Config Parameters (#4595) 2020-02-04 05:28:35 +00:00
server.go Add a few test cases to ReceiveBlockNoPubsub with race detection (#6298) 2020-07-03 05:46:53 +00:00
slashings_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
slashings.go Reverse broadcast-slashing flag to disable-broadcast-slashings (#5952) 2020-05-22 17:19:45 +00:00
validators_stream_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
validators_stream.go Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
validators_test.go Applies assertion funcs to rpc tests (#6641) 2020-07-20 02:15:51 +00:00
validators.go Fast list validators (#6580) 2020-07-14 12:21:55 +00:00