summaryrefslogtreecommitdiff
path: root/worker_watcher/worker_watcher.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-11-06 17:31:09 +0300
committerValery Piashchynski <[email protected]>2021-11-07 16:11:46 +0300
commita944394935766648896f833b8a7517abc1daaa1f (patch)
treede05d24f8af6ad54630beda55afc3cfbc745df62 /worker_watcher/worker_watcher.go
parentc27daeeb9e70cd99cdc8355c08455d1e4d453815 (diff)
remove redundand error check
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'worker_watcher/worker_watcher.go')
-rwxr-xr-xworker_watcher/worker_watcher.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/worker_watcher/worker_watcher.go b/worker_watcher/worker_watcher.go
index 175972e0..6324af1b 100755
--- a/worker_watcher/worker_watcher.go
+++ b/worker_watcher/worker_watcher.go
@@ -104,10 +104,6 @@ func (ww *workerWatcher) Take(ctx context.Context) (worker.BaseProcess, error) {
return nil, errors.E(op, err)
}
- if err != nil {
- return nil, errors.E(op, err)
- }
-
switch w.State().Value() {
// return only workers in the Ready state
// check first