diff --git a/cmd/otelcol/main_windows.go b/cmd/otelcol/main_windows.go index b4e03cbadba..0a265b11ab9 100644 --- a/cmd/otelcol/main_windows.go +++ b/cmd/otelcol/main_windows.go @@ -26,16 +26,16 @@ import ( ) func run(params service.Parameters) error { - if isInteractiveMode, err := checkInteractiveMode(); err != nil { + if useInteractiveMode, err := checkUseInteractiveMode(); err != nil { return err - } else if isInteractiveMode { + } else if useInteractiveMode { return runInteractive(params) } else { return runService(params) } } -func checkInteractiveMode() (bool, error) { +func checkUseInteractiveMode() (bool, error) { if value, present := os.LookupEnv("NO_WINDOWS_SERVICE"); present && value != "0" { return true, nil }