Skip to content

Commit

Permalink
fix: invert args order for prefix check in deprecation notice (#10329)
Browse files Browse the repository at this point in the history
  • Loading branch information
kruskall authored Feb 22, 2023
1 parent 62907de commit 6669ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/beatcmd/beat.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func (b *Beat) Run(ctx context.Context) error {
if runtime.GOOS == "darwin" {
if host, err := sysinfo.Host(); err != nil {
logger.Warnf("failed to retrieve kernel version, ignoring potential deprecation warning: %v", err)
} else if strings.HasPrefix("19.", host.Info().KernelVersion) {
} else if strings.HasPrefix(host.Info().KernelVersion, "19.") {
// macOS 10.15.x (catalina) means darwin kernel 19.y
logger.Warn("deprecation notice: support for macOS 10.15 will be removed in an upcoming version")
}
Expand Down

0 comments on commit 6669ffc

Please sign in to comment.