summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-11-06 17:31:09 +0300
committerValery Piashchynski <[email protected]>2021-11-06 17:31:09 +0300
commitc639dd2ffde1b6c8679d4b3fe6f16130ed091299 (patch)
tree9020d9f60fd5b3c3bd0c7f8b674cfe978ea1e4cc
parentb9d24b98b93b64e359ae7984917a6094c6de991c (diff)
remove redundand error check
Signed-off-by: Valery Piashchynski <[email protected]>
-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 544c9789..6cd01177 100755
--- a/worker_watcher/worker_watcher.go
+++ b/worker_watcher/worker_watcher.go
@@ -112,10 +112,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