Skip to content

Commit

Permalink
Merge pull request jmoiron#537 from muesli/conversion-fixes
Browse files Browse the repository at this point in the history
Removed unnecessary conversion
  • Loading branch information
jmoiron authored Jan 24, 2021
2 parents 7c312af + 8ee4665 commit 4cb7f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (j *JSONText) Scan(src interface{}) error {
default:
return errors.New("Incompatible type for JSONText")
}
*j = JSONText(append((*j)[0:0], source...))
*j = append((*j)[0:0], source...)
return nil
}

Expand Down

0 comments on commit 4cb7f7d

Please sign in to comment.