diff --git a/cmd/privage/add.go b/cmd/privage/add.go index 3a4bec3..838149b 100644 --- a/cmd/privage/add.go +++ b/cmd/privage/add.go @@ -145,7 +145,7 @@ func labelExists(label string, identity id.Identity) bool { } } - for k, _ := range labels { + for k := range labels { if k == label { return true } diff --git a/cmd/privage/bash.go b/cmd/privage/bash.go index 926c22b..40613ac 100644 --- a/cmd/privage/bash.go +++ b/cmd/privage/bash.go @@ -95,7 +95,7 @@ func bashCompleteCategory(ctx *cli.Context) { } - for k, _ := range categories { + for k := range categories { fmt.Println(k) } } diff --git a/cmd/privage/status.go b/cmd/privage/status.go index b10c116..3534450 100644 --- a/cmd/privage/status.go +++ b/cmd/privage/status.go @@ -55,7 +55,7 @@ func statusAction(ctx *cli.Context) error { cnt := 0 if s.Id.Id != nil { - for _ = range headerGenerator(s.Repository, s.Id) { + for range headerGenerator(s.Repository, s.Id) { cnt++ } diff --git a/config/config.go b/config/config.go index 7d4ceaf..83fe1a9 100644 --- a/config/config.go +++ b/config/config.go @@ -94,7 +94,7 @@ func New(path string) (*Config, error) { } // expand ~/ - conf, err := expandHome(conf) + conf, err := expandHome(conf) if err != nil { return &Config{}, fmt.Errorf("Could not expand home", err) }