From 8c55a6ef30f9cbc1f52ad716e730d60819e0bf57 Mon Sep 17 00:00:00 2001 From: Michelle Noorali Date: Sun, 20 Mar 2016 22:22:11 -0600 Subject: [PATCH] ref(repo): clean up cmd/helm repo vars --- cmd/helm/repository.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/helm/repository.go b/cmd/helm/repository.go index f194b2df7..f0dbb3cc6 100644 --- a/cmd/helm/repository.go +++ b/cmd/helm/repository.go @@ -28,8 +28,8 @@ func init() { addCommands(repoCommands()) } -var dmURL string = "http://localhost:8080" -var chartRepoPath string = "chart_repositories" +var dmURL = "http://localhost:8080" +var chartRepoPath = "chart_repositories" func repoCommands() cli.Command { return cli.Command{ @@ -93,7 +93,7 @@ func addRepo(c *cli.Context) error { } client := client.NewClient(dmURL) - var dest string = "" + dest := "" _, err := client.Post(chartRepoPath, nil, &dest) if err != nil { return err @@ -104,7 +104,7 @@ func addRepo(c *cli.Context) error { func listRepos(c *cli.Context) error { client := client.NewClient(dmURL) - var dest string = "" + dest := "" _, err := client.Get(chartRepoPath, &dest) if err != nil { return err @@ -119,7 +119,7 @@ func removeRepo(c *cli.Context) error { return errors.New("'helm repo remove' requires a repository as an argument") } client := client.NewClient(dmURL) - var dest string = "" + dest := "" _, err := client.Delete(chartRepoPath, &dest) if err != nil { return err