mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
ci: enable gocognit (#9359)
And, bring the server under 300: * Removed the undocumented "disable" STUN address in favor of the --disable-direct flag.
This commit is contained in:
@@ -831,6 +831,13 @@ func (r *RootCmd) checkWarnings(i *clibase.Invocation, client *codersdk.Client)
|
||||
return nil
|
||||
}
|
||||
|
||||
// Verbosef logs a message if verbose mode is enabled.
|
||||
func (r *RootCmd) Verbosef(inv *clibase.Invocation, fmtStr string, args ...interface{}) {
|
||||
if r.verbose {
|
||||
cliui.Infof(inv.Stdout, fmtStr, args...)
|
||||
}
|
||||
}
|
||||
|
||||
type headerTransport struct {
|
||||
transport http.RoundTripper
|
||||
header http.Header
|
||||
|
||||
Reference in New Issue
Block a user