From 92214ed3ee15254106c05bcfe5dec034a13e708d Mon Sep 17 00:00:00 2001 From: derailed Date: Sat, 4 Jan 2020 16:24:55 -0700 Subject: [PATCH] cleaning up --- internal/dao/non_resource.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/dao/non_resource.go b/internal/dao/non_resource.go index 30ab4a5b..a4fcf8b1 100644 --- a/internal/dao/non_resource.go +++ b/internal/dao/non_resource.go @@ -16,16 +16,16 @@ type NonResource struct { } // Init initializes the resource. -func (g *NonResource) Init(f Factory, gvr client.GVR) { - g.Factory, g.gvr = f, gvr +func (n *NonResource) Init(f Factory, gvr client.GVR) { + n.Factory, n.gvr = f, gvr } // GVR returns a gvr. -func (g *NonResource) GVR() string { - return g.gvr.String() +func (n *NonResource) GVR() string { + return n.gvr.String() } // Get returns the given resource. -func (c *NonResource) Get(context.Context, string) (runtime.Object, error) { +func (n *NonResource) Get(context.Context, string) (runtime.Object, error) { return nil, fmt.Errorf("NYI!") }