Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Dec 4, 2023
1 parent 3442f60 commit 9993b83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/scale/decode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,21 +551,21 @@ func (ms *myStruct) UnmarshalSCALE(reader io.Reader) (err error) {
if err != nil {
return
}
ms.First = uint32(binary.LittleEndian.Uint32(buf))
ms.First = binary.LittleEndian.Uint32(buf)

buf = make([]byte, 4)
_, err = reader.Read(buf)
if err != nil {
return
}
ms.Middle = uint32(binary.LittleEndian.Uint32(buf))
ms.Middle = binary.LittleEndian.Uint32(buf)

buf = make([]byte, 4)
_, err = reader.Read(buf)
if err != nil {
return
}
ms.Last = uint32(binary.LittleEndian.Uint32(buf))
ms.Last = binary.LittleEndian.Uint32(buf)
return nil
}

Expand Down

0 comments on commit 9993b83

Please sign in to comment.