Skip to content

Commit

Permalink
Make deepsource happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
nalepae committed Jul 1, 2024
1 parent e9a9db3 commit 67d1018
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions beacon-chain/db/slasherkv/pruning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ func TestStore_PruneAttestations_OK(t *testing.T) {

err := beaconDB.db.Update(func(tx *bolt.Tx) error {
bkt := tx.Bucket(attestationDataRootsBucket)
encIdx := encodeValidatorIndex(primitives.ValidatorIndex(0))
encodedTargetEpoch := encodeTargetEpoch(lowestStoredEpoch + 1)
key := append(encodedTargetEpoch, encIdx...)
key := append(
encodeTargetEpoch(lowestStoredEpoch+1),
encodeValidatorIndex(primitives.ValidatorIndex(0))...,
)
return bkt.Put(key, []byte("hi"))
})
require.NoError(t, err)
Expand Down

0 comments on commit 67d1018

Please sign in to comment.