Skip to content

Commit 8ee4665

Browse files
committed
Removed unnecessary conversion
append is already returning the correct type here.
1 parent 38398a3 commit 8ee4665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (j *JSONText) Scan(src interface{}) error {
104104
default:
105105
return errors.New("Incompatible type for JSONText")
106106
}
107-
*j = JSONText(append((*j)[0:0], source...))
107+
*j = append((*j)[0:0], source...)
108108
return nil
109109
}
110110

0 commit comments

Comments
 (0)