Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
Co-authored-by: Dominik Menke <[email protected]>
  • Loading branch information
ldez and dmke authored Mar 5, 2025
1 parent afbf734 commit c45afea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions cmd/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,10 @@ func launchHook(hook string, timeout time.Duration, meta map[string]string) erro
}

go func() {
select {
case <-ctxCmd.Done():
if ctxCmd.Err() != nil {
_ = cmd.Process.Kill()
_ = stdout.Close()
}
<-ctxCmd.Done():

Check failure on line 52 in cmd/hook.go

View workflow job for this annotation

GitHub Actions / Go (oldstable, ubuntu-latest)

syntax error: unexpected : at end of statement

Check failure on line 52 in cmd/hook.go

View workflow job for this annotation

GitHub Actions / Go (stable, ubuntu-latest)

syntax error: unexpected : at end of statement

Check failure on line 52 in cmd/hook.go

View workflow job for this annotation

GitHub Actions / Go (stable, macos-latest)

syntax error: unexpected : at end of statement
if ctxCmd.Err() != nil {
_ = cmd.Process.Kill()
_ = stdout.Close()
}
}()

Expand Down

0 comments on commit c45afea

Please sign in to comment.