Skip to content

Commit

Permalink
remove useless comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejinchi.xjc committed Sep 16, 2022
1 parent 9a805a3 commit 6b861a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions copier.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,11 +211,6 @@ func copier(toValue interface{}, fromValue interface{}, opt Option) (err error)
}
}

//if to.IsNil() {
// slice := reflect.MakeSlice(reflect.SliceOf(to.Type().Elem()), from.Len(), from.Cap())
// to.Set(slice)
//}

for i := 0; i < amount; i++ {
var dest, source reflect.Value

Expand Down

0 comments on commit 6b861a8

Please sign in to comment.