mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-21 08:27:02 +00:00
Add linter misspell (#530)
* Add linter misspell * Fix spelling Co-authored-by: Anbraten <anton@ju60.de>
This commit is contained in:
@@ -98,12 +98,12 @@ func (r *Runner) Run(ctx context.Context) error {
|
||||
ctx, cancel := context.WithTimeout(ctxmeta, timeout)
|
||||
defer cancel()
|
||||
|
||||
cancelled := abool.New()
|
||||
canceled := abool.New()
|
||||
go func() {
|
||||
logger.Debug().Msg("listen for cancel signal")
|
||||
|
||||
if werr := r.client.Wait(ctx, work.ID); werr != nil {
|
||||
cancelled.SetTo(true)
|
||||
canceled.SetTo(true)
|
||||
logger.Warn().Err(werr).Msg("cancel signal received")
|
||||
|
||||
cancel()
|
||||
@@ -311,7 +311,7 @@ func (r *Runner) Run(ctx context.Context) error {
|
||||
state.ExitCode = 1
|
||||
state.Error = err.Error()
|
||||
}
|
||||
if cancelled.IsSet() {
|
||||
if canceled.IsSet() {
|
||||
state.ExitCode = 137
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user