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:
Ammar Bandukwala
2023-08-27 14:46:44 -05:00
committed by GitHub
parent 173aac959c
commit 6ba92ef924
14 changed files with 263 additions and 272 deletions

View File

@ -184,8 +184,6 @@ type Options struct {
// @in header
// @name Coder-Session-Token
// New constructs a Coder API handler.
//
//nolint:gocyclo
func New(options *Options) *API {
if options == nil {
options = &Options{}