Skip to content

Commit

Permalink
Some renaming for better clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
agoallikmaa committed Dec 8, 2020
1 parent 722c2e7 commit 94a146a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/otelcol/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 94a146a

Please sign in to comment.