diff options
author | Robert Zaremba <robert.zaremba@scale-it.pl> | 2017-11-10 09:48:51 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-21 22:14:50 +0800 |
commit | 95461e8b2289c1b8f6c588087a8de5f4f64a749c (patch) | |
tree | e1763fdc4d931bc1a9882538cc51283352dccc2b /accounts/abi/event.go | |
parent | 0ed8b838a991f81f79cc6ed4fa961c563203a7a2 (diff) | |
download | dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.gz dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.tar.zst dexon-95461e8b2289c1b8f6c588087a8de5f4f64a749c.zip |
accounts/abi: satisfy most of the linter warnings
+ adding missing comments
+ small cleanups which won't significantly change
function body.
+ unify Method receiver name
Diffstat (limited to 'accounts/abi/event.go')
-rw-r--r-- | accounts/abi/event.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/accounts/abi/event.go b/accounts/abi/event.go index b67bc96a8..3d4e0b63c 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -120,7 +120,7 @@ func (e Event) singleUnpack(v interface{}, output []byte) error { } if e.Inputs[0].Indexed { - return fmt.Errorf("abi: attempting to unpack indexed variable into element.") + return fmt.Errorf("abi: attempting to unpack indexed variable into element") } value := valueOf.Elem() @@ -129,8 +129,5 @@ func (e Event) singleUnpack(v interface{}, output []byte) error { if err != nil { return err } - if err := set(value, reflect.ValueOf(marshalledValue), e.Inputs[0]); err != nil { - return err - } - return nil + return set(value, reflect.ValueOf(marshalledValue), e.Inputs[0]) } |