From ecd404f521b9b0a5b7af294bad056880ba06d8e9 Mon Sep 17 00:00:00 2001 From: "Lee E. Hinman" Date: Fri, 3 Jan 2025 10:20:26 -0600 Subject: [PATCH] linter fixes - remove unused func - remove unused var --- dev-tools/mage/gotool/go.go | 4 ---- libbeat/cfgfile/cfgfile.go | 13 ++++++------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/dev-tools/mage/gotool/go.go b/dev-tools/mage/gotool/go.go index b0d20cc55485..6597893500ab 100644 --- a/dev-tools/mage/gotool/go.go +++ b/dev-tools/mage/gotool/go.go @@ -224,10 +224,6 @@ func runVGo(cmd string, args *Args) error { }, cmd, args) } -func runGo(cmd string, args *Args) error { - return execGoWith(sh.RunWith, cmd, args) -} - func execGoWith( fn func(map[string]string, string, ...string) error, cmd string, args *Args, diff --git a/libbeat/cfgfile/cfgfile.go b/libbeat/cfgfile/cfgfile.go index 94cb1ef37ae8..126ab03d6444 100644 --- a/libbeat/cfgfile/cfgfile.go +++ b/libbeat/cfgfile/cfgfile.go @@ -32,13 +32,12 @@ import ( // Evil package level globals var ( - once sync.Once - configfiles *config.StringsFlag - overwrites *config.C - defaults *config.C - homePath *string - configPath *string - allowedBackwardsCompatibleFlags []string + once sync.Once + configfiles *config.StringsFlag + overwrites *config.C + defaults *config.C + homePath *string + configPath *string ) func Initialize() {