prysm-pulse/beacon-chain/state
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
..
stategen Code quality issues - Remove unused code (#6864) 2020-08-05 13:59:46 +02:00
stateutil Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
BUILD.bazel Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00
cloners.go Add Reference Copying (#5245) 2020-04-19 13:57:43 +00:00
docs.go Update beacon state locks (#6326) 2020-07-06 20:52:53 +00:00
field_trie_test.go Applies assertion funcs to state tests (#6623) 2020-07-18 07:56:48 +00:00
field_trie.go preset memory (#6722) 2020-07-25 11:54:54 -07:00
getters_test.go Applies assertion funcs to state tests (#6623) 2020-07-18 07:56:48 +00:00
getters.go Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00
references_test.go Applies assertion funcs to state tests (#6623) 2020-07-18 07:56:48 +00:00
setters.go Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00
state_trie_test.go Revert "Optimize AppendValidator for beacon state" (#6710) 2020-07-24 05:43:15 +00:00
state_trie.go Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00
types_bench_test.go Tiny optimization in state refs lock/unlock (#6520) 2020-07-08 12:53:36 +00:00
types_test.go Rm unused HashTreeRootState (#6697) 2020-07-23 17:19:05 -05:00
types.go Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00
validator_map_test.go Add New Validator Map Handler (#6910) 2020-08-07 01:42:50 +00:00