Skip to content

Commit f2833db

Browse files
committed
Update votodo.go
1 parent e2f0639 commit f2833db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/vto/votodo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func VoToDoPlus(dst interface{}, src interface{}, model ModelParameters) error {
159159
if !s.IsZero() {
160160
if d.Type() == s.Type() {
161161
d.Set(s)
162-
} else {
162+
} else if s.CanConvert(d.Type()) {
163163
d.Set(reflect.ValueOf(s.Interface()).Convert(d.Type()))
164164
}
165165
}

0 commit comments

Comments
 (0)