Skip to content

Commit 721fd79

Browse files
committed
fix: edit lint error
1 parent b8a0693 commit 721fd79

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

core/txpool/blobpool/blobpool.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,6 @@ func (p *BlobPool) parseTransaction(id uint64, size uint32, blob []byte) error {
548548
if err := rlp.DecodeBytes(blob, tx); err != nil {
549549
log.Error("Failed to decode blob pool entry", "id", id, "err", err)
550550
return errors.New("unknown tx type")
551-
552551
}
553552
if tx.BlobTxSidecar() == nil {
554553
log.Error("Missing sidecar in blob pool entry", "id", id, "hash", tx.Hash())

core/types/custody_bitmap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (b *CustodyBitmap) Clear(i uint) error {
4545
func (b CustodyBitmap) OneCount() int {
4646
total := 0
4747
for _, byte := range b {
48-
total += bits.OnesCount8(uint8(byte))
48+
total += bits.OnesCount8(byte)
4949
}
5050
return total
5151
}
@@ -56,7 +56,7 @@ func (b CustodyBitmap) Indices() []uint64 {
5656
for byteIdx, val := range b {
5757
v := val
5858
for v != 0 {
59-
tz := bits.TrailingZeros8(uint8(v)) // 0..7
59+
tz := bits.TrailingZeros8(v) // 0..7
6060
idx := uint64(byteIdx*8 + tz)
6161
out = append(out, idx)
6262
v &^= 1 << tz

crypto/kzg4844/kzg4844.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,4 @@ func RecoverBlobs(cells []Cell, cellIndices []uint64) ([]Blob, error) {
224224
return ckzgRecoverBlobs(cells, cellIndices)
225225
}
226226
return gokzgRecoverBlobs(cells, cellIndices)
227-
228227
}

0 commit comments

Comments
 (0)