Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
- remove unused func
- remove unused var
  • Loading branch information
leehinman committed Jan 3, 2025
1 parent 42ac207 commit ecd404f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
4 changes: 0 additions & 4 deletions dev-tools/mage/gotool/go.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
13 changes: 6 additions & 7 deletions libbeat/cfgfile/cfgfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit ecd404f

Please sign in to comment.