mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
io: no need to do ValueOf() again, it's known
Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
parent
c2b4d32224
commit
a123b75fd9
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ func GetVarSize(value any) int {
|
||||||
valueSize := 0
|
valueSize := 0
|
||||||
|
|
||||||
if valueLength != 0 {
|
if valueLength != 0 {
|
||||||
switch reflect.ValueOf(value).Index(0).Interface().(type) {
|
switch v.Index(0).Interface().(type) {
|
||||||
case Serializable:
|
case Serializable:
|
||||||
for i := range valueLength {
|
for i := range valueLength {
|
||||||
valueSize += GetVarSize(v.Index(i).Interface())
|
valueSize += GetVarSize(v.Index(i).Interface())
|
||||||
|
|
Loading…
Reference in a new issue