rm bound check

pull/2112/head
jennifersp 2024-08-21 15:12:36 -07:00
parent b9f77cb1b3
commit 926913ad66
1 changed files with 0 additions and 5 deletions

View File

@ -296,12 +296,7 @@ func (scanPlanBinaryTextToUint32Scanner) Scan(src []byte, dst any) error {
return s.ScanText(Text{})
}
if len(src) != 4 {
return fmt.Errorf("invalid length for uint32: %v", len(src))
}
n := uint64(binary.BigEndian.Uint32(src))
return s.ScanText(Text{String: strconv.FormatUint(n, 10), Valid: true})
}