Skip to content

Commit f1e0020

Browse files
author
Alec Clowes
committed
fix lint errors
1 parent 26709f4 commit f1e0020

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func mainCmd(c *cli.Context) error {
124124

125125
// Launch main command
126126
var childPid int
127-
err = run(ctx, provider, c.Args().Slice(), &childPid)
127+
childPid, err = run(ctx, provider, c.Args().Slice())
128128
if err != nil {
129129
log.WithError(err).Error("failed to run")
130130
os.Exit(1)
@@ -170,7 +170,7 @@ func run(ctx context.Context, provider secrets.Provider, commandSlice []string)
170170

171171
if len(commandSlice) == 0 {
172172
log.Warn("no command specified")
173-
return
173+
return childPid, err
174174
}
175175

176176
// split command and arguments
@@ -211,7 +211,7 @@ func run(ctx context.Context, provider secrets.Provider, commandSlice []string)
211211
err = cmd.Start()
212212
if err != nil {
213213
log.WithError(err).Error("failed to start command")
214-
return
214+
return childPid, err
215215
}
216216
childPid = cmd.Process.Pid
217217

@@ -234,5 +234,5 @@ func run(ctx context.Context, provider secrets.Provider, commandSlice []string)
234234
}
235235
}()
236236

237-
return
237+
return childPid, err
238238
}

0 commit comments

Comments
 (0)