Skip to content

Commit c7fec8a

Browse files
elianddbJames Cor
authored andcommitted
[ga-format-pr] Run ./format_repo.sh to fix formatting
1 parent 0dcec8f commit c7fec8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/types/json.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ func convertJSONValue(v interface{}) (interface{}, sql.ConvertInRange, error) {
6262
if b, berr := json.Marshal(v); berr == nil {
6363
data = b
6464
} else {
65-
return JSONDocument{Val: nil}, sql.InRange, nil
66-
}
65+
return JSONDocument{Val: nil}, sql.InRange, nil
66+
}
6767
}
6868

6969
if int64(len(data))*charsetMaxLength > MaxJsonFieldByteLength {
7070
return JSONDocument{Val: nil}, sql.InRange, ErrLengthTooLarge.New(len(data), MaxJsonFieldByteLength)
7171
}
7272

73-
var val interface{}
73+
var val interface{}
7474
if err := json.Unmarshal(data, &val); err != nil {
7575
return JSONDocument{Val: nil}, sql.OutOfRange, sql.ErrInvalidJson.New(err.Error())
7676
}

0 commit comments

Comments
 (0)