Skip to content

Commit

Permalink
fix(influx): drop persistent pre run func taht double prints help cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
jsteenb2 committed Jan 11, 2020
1 parent 9338a0b commit 3f56658
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/influx/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ func influxCmd() *cobra.Command {
Use: "influx",
Short: "Influx Client",
SilenceUsage: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
if err := checkSetup(flags.host); err != nil {
fmt.Printf("Note: %v\n", internal.ErrorFmt(err))
}
seeHelp(cmd, args)
},
}

setViperOptions()
Expand Down

0 comments on commit 3f56658

Please sign in to comment.