Skip to content

Commit

Permalink
Fixing last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kenshaw committed Mar 11, 2023
1 parent 5aeb67f commit 6e7da0b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
4 changes: 2 additions & 2 deletions eval.go
Expand Up @@ -78,10 +78,10 @@ func parseRemoteObject(v *runtime.RemoteObject, res interface{}) (err error) {
value := v.Value
if value == nil {
rv := reflect.ValueOf(res)
if rv.Kind() == reflectPtr {
if rv.Kind() == reflect.Ptr {
switch rv.Elem().Kind() {
// Common kinds that can be nil.
case reflectPtr, reflect.Map, reflect.Slice:
case reflect.Ptr, reflect.Map, reflect.Slice:
// It's weird that res is a pointer to the following kinds,
// but they can be nil too.
case reflect.Chan, reflect.Func, reflect.Interface:
Expand Down
10 changes: 0 additions & 10 deletions eval_go1.18.go

This file was deleted.

10 changes: 0 additions & 10 deletions eval_old.go

This file was deleted.

0 comments on commit 6e7da0b

Please sign in to comment.