mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
fix lint: ineffassign in ssz.go, goimports in defaults.go and ssz_rest_test.go
This commit is contained in:
parent
b545134da5
commit
650273aa6c
3 changed files with 8 additions and 10 deletions
|
|
@ -737,7 +737,6 @@ func EncodeExecutableDataSSZ(ep *ExecutableData, version int) []byte {
|
|||
balOffset += len(withdrawalData)
|
||||
}
|
||||
binary.LittleEndian.PutUint32(buf[pos:pos+4], uint32(balOffset))
|
||||
pos += 4
|
||||
}
|
||||
|
||||
// Variable part
|
||||
|
|
@ -816,7 +815,6 @@ func DecodeExecutableDataSSZ(buf []byte, version int) (*ExecutableData, error) {
|
|||
ep.SlotNumber = &slotNumber
|
||||
pos += 8
|
||||
balOffset = binary.LittleEndian.Uint32(buf[pos : pos+4])
|
||||
pos += 4
|
||||
}
|
||||
|
||||
// Decode variable-length fields
|
||||
|
|
|
|||
Loading…
Reference in a new issue