Skip to content

Commit d849810

Browse files
authored
Change String() to accept a value reciever. (#1239)
Since Plugin returns a TypedName by value the String method with pointer receiver was not called. Go happily calls the value reciver based methods for pointers as well. Signed-off-by: Etai Lev Ran <[email protected]>
1 parent 6d9787b commit d849810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/epp/plugins/typedname.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ type TypedName struct {
2929
}
3030

3131
// String returns the type and name rendered as "<name>/<type>".
32-
func (tn *TypedName) String() string {
32+
func (tn TypedName) String() string {
3333
return tn.Name + separator + tn.Type
3434
}

0 commit comments

Comments
 (0)