Skip to content

Commit

Permalink
Removed unnecessary conversion
Browse files Browse the repository at this point in the history
append is already returning the correct type here.
  • Loading branch information
muesli committed Jul 20, 2019
1 parent 38398a3 commit 8ee4665
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 8ee4665

Please sign in to comment.