Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Aug 31, 2024
1 parent a8408ac commit 71b4aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/sql_translate.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func CopyFull(target interface{}, source interface{}) {
case field.Type == sourceField.Type:
// direct copy
targetFieldValue.Set(sourceFieldValue)
case reflect.PtrTo(field.Type) == sourceField.Type:
case reflect.PointerTo(field.Type) == sourceField.Type:
// source field is pointer, target field is value
// if nil, then set to zero value, otherwise copy
if sourceFieldValue.IsNil() {
Expand Down

0 comments on commit 71b4aa6

Please sign in to comment.