Skip to content

Commit 2f0c0b8

Browse files
committed
Fixing golint in k8s.go
Signed-off-by: Raj Babu Das <[email protected]>
1 parent 7f2a543 commit 2f0c0b8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/provider/k8s/k8s.go

-3
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ func (c *K8s) DeploymentsParse(*kingpin.ParseContext) error {
146146
// The input is a slice of structs containing the filename and the slice of k8s objects present in the file.
147147
func (c *K8s) ResourceApply(deployments []Resource) error {
148148
var err error
149-
150149
err = provider.CreateGrafanaDashboardsConfigMap()
151150
if err != nil {
152151
return fmt.Errorf("error applying grafana dashboards config err:%v", err)
@@ -202,9 +201,7 @@ func (c *K8s) ResourceApply(deployments []Resource) error {
202201
// ResourceDelete deletes k8s objects.
203202
// The input is a slice of structs containing the filename and the slice of k8s objects present in the file.
204203
func (c *K8s) ResourceDelete(deployments []Resource) error {
205-
206204
var err error
207-
208205
err = provider.DeleteGrafanaDashboardsConfigMap()
209206
if err != nil {
210207
return fmt.Errorf("error deleting grafana dashboards config err:%v", err)

0 commit comments

Comments
 (0)