Skip to content

Commit

Permalink
replace DecMode.Valid with DecMode.Wellformed
Browse files Browse the repository at this point in the history
Signed-off-by: qmuntal <qmuntaldiaz@microsoft.com>
  • Loading branch information
qmuntal committed Aug 18, 2023
1 parent 8b1b067 commit a8064f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func deterministicBinaryString(data cbor.RawMessage) (cbor.RawMessage, error) {
}

// fast path: return immediately if bstr is already deterministic
if err := decModeWithTagsForbidden.Valid(data); err != nil {
if err := decModeWithTagsForbidden.Wellformed(data); err != nil {
return nil, err
}
ai := data[0] & 0x1f
Expand Down

0 comments on commit a8064f6

Please sign in to comment.