Skip to content

Commit

Permalink
Renaming err2 -> err
Browse files Browse the repository at this point in the history
  • Loading branch information
fulghum committed Jan 25, 2022
1 parent 5cd908d commit 1157992
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sql/expression/function/json_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ func (j JSONObject) Eval(ctx *sql.Context, row sql.Row) (interface{}, error) {
return nil, err
}
if i%2 == 0 {
val, err2 := sql.LongText.Convert(val)
if err2 != nil {
return nil, err2
val, err := sql.LongText.Convert(val)
if err != nil {
return nil, err
}
key = val.(string)
} else {
Expand Down

0 comments on commit 1157992

Please sign in to comment.