Skip to content

Commit

Permalink
use a typed enum rather than directly int
Browse files Browse the repository at this point in the history
  • Loading branch information
misteriaud committed Dec 11, 2024
1 parent c54db33 commit 8bab3e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/api/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ import (
"github.com/DataDog/datadog-agent/pkg/util/log"
)

type source int

const (
uninitialized = iota
uninitialized source = iota
setAuthToken
createAndSetAuthToken
)
Expand All @@ -40,7 +42,7 @@ var (
InsecureSkipVerify: true,

Check failure

Code scanning / CodeQL

Disabled TLS certificate check High

InsecureSkipVerify should not be used in production code.
}
serverTLSConfig *tls.Config
initSource int
initSource source
)

// SetAuthToken sets the session token and IPC certificate
Expand Down

0 comments on commit 8bab3e7

Please sign in to comment.