diff options
author | Oleg Kovalov <iamolegkovalov@gmail.com> | 2018-07-30 17:30:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-07-30 17:30:09 +0800 |
commit | d42ce0f2c1b52e26cce475e411d97165fb975577 (patch) | |
tree | 03043c37becf49145b23f4824f563e3443335698 /signer | |
parent | 273c7a9dc4e8961e96e51bd8274436ff983a21ef (diff) | |
download | dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.gz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.bz2 dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.lz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.xz dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.tar.zst dexon-d42ce0f2c1b52e26cce475e411d97165fb975577.zip |
all: simplify switches (#17267)
* all: simplify switches
* silly mistake
Diffstat (limited to 'signer')
-rw-r--r-- | signer/core/abihelper.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/signer/core/abihelper.go b/signer/core/abihelper.go index 1d4fbc7dc..0fef24939 100644 --- a/signer/core/abihelper.go +++ b/signer/core/abihelper.go @@ -43,11 +43,11 @@ type decodedCallData struct { // String implements stringer interface, tries to use the underlying value-type func (arg decodedArgument) String() string { var value string - switch arg.value.(type) { + switch val := arg.value.(type) { case fmt.Stringer: - value = arg.value.(fmt.Stringer).String() + value = val.String() default: - value = fmt.Sprintf("%v", arg.value) + value = fmt.Sprintf("%v", val) } return fmt.Sprintf("%v: %v", arg.soltype.Type.String(), value) } |