Skip to content

Commit

Permalink
🧹 ignore viper errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock committed Jan 15, 2024
1 parent 37d92dd commit f87c700
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/cnspec/cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ var serveCmd = &cobra.Command{
Short: "Start cnspec in background mode.",

PreRun: func(cmd *cobra.Command, args []string) {
viper.BindPFlag("scan_interval.timer", cmd.Flags().Lookup("timer"))
viper.BindPFlag("scan_interval.splay", cmd.Flags().Lookup("splay"))
viper.BindPFlag("inventory-file", cmd.Flags().Lookup("inventory-file"))
_ = viper.BindPFlag("scan_interval.timer", cmd.Flags().Lookup("timer"))
_ = viper.BindPFlag("scan_interval.splay", cmd.Flags().Lookup("splay"))
_ = viper.BindPFlag("inventory-file", cmd.Flags().Lookup("inventory-file"))
},
RunE: func(cmd *cobra.Command, args []string) error {
prof.InitProfiler()
Expand Down

0 comments on commit f87c700

Please sign in to comment.