Skip to content

Commit

Permalink
style: re-arranged code
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jun 15, 2022
1 parent d1ea37f commit fb6b9f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/kubernetes/local-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ class FailureCounter {
}
}

const localAppFailureCounter = new FailureCounter(10)

function getLocalServiceCommand({ spec: localModeSpec }: StartLocalModeParams): OsCommand | undefined {
const command = localModeSpec.command
if (!command || command.length === 0) {
Expand All @@ -451,6 +449,8 @@ function getLocalServiceCommand({ spec: localModeSpec }: StartLocalModeParams):
return { command: command.join(" ") }
}

const localAppFailureCounter = new FailureCounter(10)

function getLocalAppProcess(configParams: StartLocalModeParams): RecoverableProcess | undefined {
const localServiceCmd = getLocalServiceCommand(configParams)
const { service, log } = configParams
Expand Down

0 comments on commit fb6b9f5

Please sign in to comment.