From 2f0c0b82110ad8df06409dbd758bada890c1a028 Mon Sep 17 00:00:00 2001 From: Raj Babu Das Date: Fri, 28 Aug 2020 04:54:35 +0530 Subject: [PATCH] Fixing golint in k8s.go Signed-off-by: Raj Babu Das --- pkg/provider/k8s/k8s.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/provider/k8s/k8s.go b/pkg/provider/k8s/k8s.go index 26b869bdf..919ce27a0 100644 --- a/pkg/provider/k8s/k8s.go +++ b/pkg/provider/k8s/k8s.go @@ -146,7 +146,6 @@ func (c *K8s) DeploymentsParse(*kingpin.ParseContext) error { // The input is a slice of structs containing the filename and the slice of k8s objects present in the file. func (c *K8s) ResourceApply(deployments []Resource) error { var err error - err = provider.CreateGrafanaDashboardsConfigMap() if err != nil { return fmt.Errorf("error applying grafana dashboards config err:%v", err) @@ -202,9 +201,7 @@ func (c *K8s) ResourceApply(deployments []Resource) error { // ResourceDelete deletes k8s objects. // The input is a slice of structs containing the filename and the slice of k8s objects present in the file. func (c *K8s) ResourceDelete(deployments []Resource) error { - var err error - err = provider.DeleteGrafanaDashboardsConfigMap() if err != nil { return fmt.Errorf("error deleting grafana dashboards config err:%v", err)