Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
fix: error styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Thulio Ferraz Assis authored and Vlad Iovanov committed Mar 31, 2020
1 parent fb5c76b commit 52a73ef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions container-run/pkg/containerrun/containerrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func Run(
Arg: postStartCommandArgs,
}

err := startProcesses(
if err := startProcesses(
runner,
conditionRunner,
commandChecker,
Expand All @@ -97,8 +97,8 @@ func Run(
conditionCommand,
processRegistry,
errors,
done)
if err != nil {
done,
); err != nil {
return err
}

Expand All @@ -109,7 +109,7 @@ func Run(
// running, and false otherwise.
active := true

if err = watchForCommands(listener, jobName, processName, errors, commands); err != nil {
if err := watchForCommands(listener, jobName, processName, errors, commands); err != nil {
return err
}

Expand Down Expand Up @@ -247,14 +247,14 @@ func startProcesses(
errors chan error,
done chan struct{},
) error {
err := startMainProcess(
if err := startMainProcess(
runner,
command,
stdio,
processRegistry,
errors,
done)
if err != nil {
done,
); err != nil {
return err
}

Expand Down

0 comments on commit 52a73ef

Please sign in to comment.