Skip to content

Commit b6a8f89

Browse files
committed
Fix useless conversion lint
1 parent deba80e commit b6a8f89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/types/transaction.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (tx *Transaction) SetCachedCalldataUnits(compressionLevel uint64, calldataU
107107
// Ensure the compressionLevel and calldataUnits will fit.
108108
// Otherwise, just clear the cache.
109109
if compressionLevel < 1<<8 && calldataUnits < 1<<56 {
110-
repr = uint64(compressionLevel)<<56 | calldataUnits
110+
repr = compressionLevel<<56 | calldataUnits
111111
}
112112
tx.calldataUnitsForBrotliCompressionLevel.Store(repr)
113113
}

0 commit comments

Comments
 (0)