1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-14 20:56:42 +00:00

pkg/apis/nfd: use consistent receiver name for methods of templateHelper

This commit is contained in:
Markus Lehtonen 2021-12-01 10:51:47 +02:00
parent d07400206f
commit 3f225be081

View file

@ -217,19 +217,19 @@ func newTemplateHelper(name string) (*templateHelper, error) {
} }
// DeepCopy is a stub to augment the auto-generated code // DeepCopy is a stub to augment the auto-generated code
func (in *templateHelper) DeepCopy() *templateHelper { func (h *templateHelper) DeepCopy() *templateHelper {
if in == nil { if h == nil {
return nil return nil
} }
out := new(templateHelper) out := new(templateHelper)
in.DeepCopyInto(out) h.DeepCopyInto(out)
return out return out
} }
// DeepCopyInto is a stub to augment the auto-generated code // DeepCopyInto is a stub to augment the auto-generated code
func (in *templateHelper) DeepCopyInto(out *templateHelper) { func (h *templateHelper) DeepCopyInto(out *templateHelper) {
// HACK: just re-use the template // HACK: just re-use the template
out.template = in.template out.template = h.template
} }
func (h *templateHelper) execute(data interface{}) (string, error) { func (h *templateHelper) execute(data interface{}) (string, error) {