summaryrefslogtreecommitdiff
path: root/worker.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2019-11-30 22:48:46 +0300
committerValery Piashchynski <[email protected]>2019-11-30 22:48:46 +0300
commit921354df1aa4687837e3ba6ac0eb04d39321c149 (patch)
tree28336d4ea8f85a8c78301a84834b39de87a7028d /worker.go
parent4c608506dd745a73b5e09348485e48288824b774 (diff)
- Fixed issue with else branch
Diffstat (limited to 'worker.go')
-rw-r--r--worker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker.go b/worker.go
index 58899e41..a10d36d6 100644
--- a/worker.go
+++ b/worker.go
@@ -111,9 +111,9 @@ func (w *Worker) Wait() error {
if err != nil {
if ws.Exited() {
return nil
+ } else {
+ return err
}
- } else {
- return err
}
}