Bump github.com/fxamacker/cbor/v2 to v2.6.0.

This commit is contained in:
Ben Luddy
2024-02-12 15:46:17 -05:00
parent 015e76aa24
commit aac43dc96f
43 changed files with 1179 additions and 407 deletions

View File

@@ -354,7 +354,7 @@ func (di *diagnose) item() error { //nolint:gocyclo
return di.writeString(strconv.FormatInt(nValue, 10))
case cborTypeByteString:
b := di.d.parseByteString()
b, _ := di.d.parseByteString()
return di.encodeByteString(b)
case cborTypeTextString:
@@ -418,7 +418,7 @@ func (di *diagnose) item() error { //nolint:gocyclo
return errors.New("cbor: tag number 2 must be followed by byte string, got " + nt.String())
}
b := di.d.parseByteString()
b, _ := di.d.parseByteString()
bi := new(big.Int).SetBytes(b)
return di.writeString(bi.String())
@@ -427,7 +427,7 @@ func (di *diagnose) item() error { //nolint:gocyclo
return errors.New("cbor: tag number 3 must be followed by byte string, got " + nt.String())
}
b := di.d.parseByteString()
b, _ := di.d.parseByteString()
bi := new(big.Int).SetBytes(b)
bi.Add(bi, big.NewInt(1))
bi.Neg(bi)