From 8bab3e7f7569356bfda216a90192582d5cf17df1 Mon Sep 17 00:00:00 2001 From: Maxime Riaud Date: Wed, 11 Dec 2024 14:58:14 +0100 Subject: [PATCH] use a typed enum rather than directly int --- pkg/api/util/util.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/api/util/util.go b/pkg/api/util/util.go index 427d1f01614fc..b22c2e7b04ad0 100644 --- a/pkg/api/util/util.go +++ b/pkg/api/util/util.go @@ -22,8 +22,10 @@ import ( "github.com/DataDog/datadog-agent/pkg/util/log" ) +type source int + const ( - uninitialized = iota + uninitialized source = iota setAuthToken createAndSetAuthToken ) @@ -40,7 +42,7 @@ var ( InsecureSkipVerify: true, } serverTLSConfig *tls.Config - initSource int + initSource source ) // SetAuthToken sets the session token and IPC certificate