Skip to content

Commit 684b1c9

Browse files
author
Fabian Holler
committed
updateurls: use consistent method receiver name for Endpoint struct
This fixes the following golint warning: update-urls/main.go:658:1: receiver name ep should be consistent with previous receiver name e for Endpoint
1 parent 56aff56 commit 684b1c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

update-urls/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,12 +655,12 @@ func (e *Endpoint) String() string {
655655
return b.String()
656656
}
657657

658-
func (ep *Endpoint) checkHttpMethodOverride(path string) {
659-
lookupOverride := fmt.Sprintf("%v.%v: %v %v", ep.serviceName, ep.endpointName, ep.httpMethod, path)
658+
func (e *Endpoint) checkHttpMethodOverride(path string) {
659+
lookupOverride := fmt.Sprintf("%v.%v: %v %v", e.serviceName, e.endpointName, e.httpMethod, path)
660660
logf("Looking up override for %q", lookupOverride)
661661
if v, ok := methodOverrides[lookupOverride]; ok {
662662
logf("overriding method for %v to %q", lookupOverride, v)
663-
ep.httpMethod = v
663+
e.httpMethod = v
664664
return
665665
}
666666
}

0 commit comments

Comments
 (0)