Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Oct 10, 2024
1 parent a0a346a commit 2b63f97
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions base/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1024,10 +1024,7 @@ func HexCasToUint64ForDelta(casByte []byte) (uint64, error) {

// as we strip any zeros off the end of the hex value for deltas, the input delta could be odd length
if len(casByte)%2 != 0 {
evenHexLen := make([]byte, len(casByte), len(casByte)+1)
copy(evenHexLen, casByte)
evenHexLen = append(evenHexLen, '0')
casByte = evenHexLen
casByte = append(casByte, '0')
}

// create byte array for decoding into
Expand Down

0 comments on commit 2b63f97

Please sign in to comment.