prysm-pulse/beacon-chain/core/blocks
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
..
spectest Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
attestation_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
attestation.go Add committee ID check to process attestation (#6718) 2020-07-24 17:12:15 -07:00
attester_slashing_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
attester_slashing.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
block_operations_fuzz_test.go Bulk verify block deposits with BLS (#6454) 2020-06-29 20:52:19 -05:00
block_regression_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
BUILD.bazel Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
deposit_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
deposit.go Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
eth1_data_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
eth1_data.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
exit_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
exit.go Remove redundant check in exit.go (#6559) 2020-07-13 09:36:40 +00:00
genesis_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
genesis.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
header_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
header.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
log.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
proposer_slashing_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
proposer_slashing.go Add a ComputeDomainVerifySigningRoot helper (#6743) 2020-07-28 16:49:47 +00:00
randao_test.go Applies assertion funcs to beacon-chain/core/blocks tests (#6939) 2020-08-08 19:06:04 +00:00
randao.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00
signature.go Split block_operations.go into smaller files (#6495) 2020-07-06 15:27:42 -07:00