Skip to content

Commit

Permalink
Fixing golint in k8s.go
Browse files Browse the repository at this point in the history
Signed-off-by: Raj Babu Das <[email protected]>
  • Loading branch information
imrajdas committed Aug 27, 2020
1 parent 7f2a543 commit 2f0c0b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/provider/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2f0c0b8

Please sign in to comment.