Commit c1ea5275 authored by kiel barry's avatar kiel barry Committed by Péter Szilágyi

accounts: golint updates for this or self warning (#16627)

parent 448d17b8
...@@ -33,15 +33,15 @@ type Event struct { ...@@ -33,15 +33,15 @@ type Event struct {
Inputs Arguments Inputs Arguments
} }
func (event Event) String() string { func (e Event) String() string {
inputs := make([]string, len(event.Inputs)) inputs := make([]string, len(e.Inputs))
for i, input := range event.Inputs { for i, input := range e.Inputs {
inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type) inputs[i] = fmt.Sprintf("%v %v", input.Name, input.Type)
if input.Indexed { if input.Indexed {
inputs[i] = fmt.Sprintf("%v indexed %v", input.Name, input.Type) inputs[i] = fmt.Sprintf("%v indexed %v", input.Name, input.Type)
} }
} }
return fmt.Sprintf("event %v(%v)", event.Name, strings.Join(inputs, ", ")) return fmt.Sprintf("e %v(%v)", e.Name, strings.Join(inputs, ", "))
} }
// Id returns the canonical representation of the event's signature used by the // Id returns the canonical representation of the event's signature used by the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment