diff --git a/cmd/root/io.go b/cmd/root/io.go index 1c03ce70f..39af251f8 100644 --- a/cmd/root/io.go +++ b/cmd/root/io.go @@ -21,9 +21,8 @@ func initOutputFlag(cmd *cobra.Command) *outputFlag { // Configure defaults from environment, if applicable. // If the provided value is invalid it is ignored. if v, ok := env.Lookup(cmd.Context(), envOutputFormat); ok { - if err := f.output.Set(v); err != nil { - panic(err) - } + // QQQ log the error? + _ = f.output.Set(v) } cmd.PersistentFlags().VarP(&f.output, "output", "o", "output type: text or json") diff --git a/libs/auth/callback.go b/libs/auth/callback.go index 852e1f1b8..3893a5041 100644 --- a/libs/auth/callback.go +++ b/libs/auth/callback.go @@ -54,9 +54,7 @@ func newCallback(ctx context.Context, a *PersistentAuth) (*callbackServer, error } cb.srv.Handler = cb go func() { - if err := cb.srv.Serve(cb.ln); err != http.ErrServerClosed { - panic(err) - } + _ = cb.srv.Serve(cb.ln) }() return cb, nil }