File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -837,8 +837,7 @@ func (v ChangeAnnotationsMap) IsNil() bool { return v == nil }
837
837
// UnmarshalJSONObject implements gojay's UnmarshalerJSONObject.
838
838
func (v ChangeAnnotationsMap ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
839
839
edits := ChangeAnnotation {}
840
- err := dec .Object (& edits )
841
- if err != nil {
840
+ if err := dec .Object (& edits ); err != nil {
842
841
return err
843
842
}
844
843
v [ChangeAnnotationIdentifier (k )] = edits
Original file line number Diff line number Diff line change @@ -120,8 +120,7 @@ func (m StringInterfaceMap) IsNil() bool {
120
120
// UnmarshalJSONObject implements gojay.UnmarshalerJSONObject.
121
121
func (m StringInterfaceMap ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
122
122
var iface interface {}
123
- err := dec .Interface (& iface )
124
- if err != nil {
123
+ if err := dec .Interface (& iface ); err != nil {
125
124
return err
126
125
}
127
126
m [k ] = iface
@@ -157,8 +156,7 @@ func (m StringStringMap) IsNil() bool {
157
156
// UnmarshalJSONObject implements gojay.UnmarshalerJSONObject.
158
157
func (m StringStringMap ) UnmarshalJSONObject (dec * gojay.Decoder , k string ) error {
159
158
s := ""
160
- err := dec .String (& s )
161
- if err != nil {
159
+ if err := dec .String (& s ); err != nil {
162
160
return err
163
161
}
164
162
m [k ] = s
You can’t perform that action at this time.
0 commit comments