Skip to content

Commit

Permalink
use reflect.Ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltwind committed Feb 12, 2023
1 parent ec3010f commit faf63bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ import (
"math"
"reflect"
"strings"
)

import (
perrors "github.com/pkg/errors"
)

Expand Down Expand Up @@ -327,7 +325,7 @@ func SetValue(dest, v reflect.Value) {
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
dest.SetUint(v.Uint())
return
case reflect.Pointer:
case reflect.Ptr:
setRawValueToPointer(dest, v)
return
}
Expand Down

0 comments on commit faf63bf

Please sign in to comment.