Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Jan 28, 2020
1 parent 7e439a1 commit 49b7343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ var rootCmd = &cobra.Command{
silent := utils.GetBoolFlagIfChanged(cmd, "silent", false)
plain := utils.GetBoolFlagIfChanged(cmd, "plain", false)
canPrintResults := utils.Debug || (!silent && !plain && !utils.OutputJSON)
checkVersion(cmd.CalledAs(), silent, plain, canPrintResults)
checkVersion(cmd.CalledAs(), silent, canPrintResults)
},
Run: func(cmd *cobra.Command, args []string) {
cmd.Usage()
},
}

func checkVersion(command string, silent bool, plain bool, print bool) {
func checkVersion(command string, silent bool, print bool) {
// disable version checking on the "run" command and "enclave secrets download" command
if command == "run" || command == "download" {
return
Expand Down

0 comments on commit 49b7343

Please sign in to comment.