diff options
| author | 2024-07-08 07:59:07 +0000 | |
|---|---|---|
| committer | 2024-07-08 07:59:07 +0000 | |
| commit | 43c480aec45e14f8a616db881e01fb009850bbc9 (patch) | |
| tree | 24bb28334f55f05781d966cd1fbfa5bea8b029b0 /vendor/github.com/goccy/go-json/internal/decoder | |
| parent | [chore]: Bump golang.org/x/net from 0.26.0 to 0.27.0 (#3082) (diff) | |
| download | gotosocial-43c480aec45e14f8a616db881e01fb009850bbc9.tar.xz | |
[chore]: Bump github.com/minio/minio-go/v7 from 7.0.72 to 7.0.73 (#3083)
Diffstat (limited to 'vendor/github.com/goccy/go-json/internal/decoder')
| -rw-r--r-- | vendor/github.com/goccy/go-json/internal/decoder/ptr.go | 1 | ||||
| -rw-r--r-- | vendor/github.com/goccy/go-json/internal/decoder/unmarshal_text.go | 2 | 
2 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/goccy/go-json/internal/decoder/ptr.go b/vendor/github.com/goccy/go-json/internal/decoder/ptr.go index de12e105c..ae2299466 100644 --- a/vendor/github.com/goccy/go-json/internal/decoder/ptr.go +++ b/vendor/github.com/goccy/go-json/internal/decoder/ptr.go @@ -85,6 +85,7 @@ func (d *ptrDecoder) Decode(ctx *RuntimeContext, cursor, depth int64, p unsafe.P  	}  	c, err := d.dec.Decode(ctx, cursor, depth, newptr)  	if err != nil { +		*(*unsafe.Pointer)(p) = nil  		return 0, err  	}  	cursor = c diff --git a/vendor/github.com/goccy/go-json/internal/decoder/unmarshal_text.go b/vendor/github.com/goccy/go-json/internal/decoder/unmarshal_text.go index 6d37993f0..d711d0f85 100644 --- a/vendor/github.com/goccy/go-json/internal/decoder/unmarshal_text.go +++ b/vendor/github.com/goccy/go-json/internal/decoder/unmarshal_text.go @@ -147,7 +147,7 @@ func (d *unmarshalTextDecoder) DecodePath(ctx *RuntimeContext, cursor, depth int  	return nil, 0, fmt.Errorf("json: unmarshal text decoder does not support decode path")  } -func unquoteBytes(s []byte) (t []byte, ok bool) { +func unquoteBytes(s []byte) (t []byte, ok bool) { //nolint: nonamedreturns  	length := len(s)  	if length < 2 || s[0] != '"' || s[length-1] != '"' {  		return  | 
