Skip to content

Commit fee66bf

Browse files
committed
fix: edit lint error
1 parent 987582b commit fee66bf

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
@@ -571,7 +571,6 @@ func (p *BlobPool) parseTransaction(id uint64, size uint32, blob []byte) error {
571571
if err := rlp.DecodeBytes(blob, tx); err != nil {
572572
log.Error("Failed to decode blob pool entry", "id", id, "err", err)
573573
return errors.New("unknown tx type")
574-
575574
}
576575
if tx.BlobTxSidecar() == nil {
577576
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
@@ -226,5 +226,4 @@ func RecoverBlobs(cells []Cell, cellIndices []uint64) ([]Blob, error) {
226226
return ckzgRecoverBlobs(cells, cellIndices)
227227
}
228228
return gokzgRecoverBlobs(cells, cellIndices)
229-
230229
}

0 commit comments

Comments
 (0)