prysm-pulse/beacon-chain/db/kv
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
..
archived_point_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
archived_point.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
backup_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
backup.go Fix multiple anti-patterns from DeepSource analysis (#6951) 2020-08-10 16:16:45 +00:00
blocks_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
blocks.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
BUILD.bazel Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
check_historical_state.go Remove new state mgmt within db package (#6373) 2020-06-23 21:36:21 +00:00
check_historical_test_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
checkpoint_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
checkpoint.go Fix Justified and Finalized Retrieval in Genesis (#6861) 2020-08-04 03:34:17 +00:00
deposit_contract_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
deposit_contract.go Fixes receiver name in db/kv (#6356) 2020-06-23 10:15:01 +00:00
encoding_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
encoding.go Add spans to db kv's encode and decode (#6458) 2020-06-30 21:00:49 -07:00
finalized_block_roots_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
finalized_block_roots.go Add spans to db kv's encode and decode (#6458) 2020-06-30 21:00:49 -07:00
kv_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
kv.go Code quality issues - Remove unused code (#6864) 2020-08-05 13:59:46 +02:00
migration_archived_index_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
migration_archived_index.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
migration_block_slot_index_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
migration_block_slot_index.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
migration.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
operations_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
operations.go [QSP] Deduplicate functions for audit best practices (#6476) 2020-07-07 11:29:25 -05:00
powchain.go Fixes receiver name in db/kv (#6356) 2020-06-23 10:15:01 +00:00
regen_historical_states.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
schema.go Code quality issues - Remove unused code (#6864) 2020-08-05 13:59:46 +02:00
slashings_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
slashings.go [QSP] Deduplicate functions for audit best practices (#6476) 2020-07-07 11:29:25 -05:00
state_summary_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
state_summary.go [QSP] Deduplicate functions for audit best practices (#6476) 2020-07-07 11:29:25 -05:00
state_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
state.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00
utils_test.go Applies assertion funcs to beacon-chain/db tests (#6938) 2020-08-08 18:39:01 +00:00
utils.go Improved cold state checkpoints: migrate database index and usage (#6461) 2020-07-18 18:05:04 +00:00