diff options
author | Valery Piashchynski <[email protected]> | 2021-11-06 17:31:09 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-11-07 16:11:46 +0300 |
commit | a944394935766648896f833b8a7517abc1daaa1f (patch) | |
tree | de05d24f8af6ad54630beda55afc3cfbc745df62 | |
parent | c27daeeb9e70cd99cdc8355c08455d1e4d453815 (diff) |
remove redundand error check
Signed-off-by: Valery Piashchynski <[email protected]>
-rwxr-xr-x | worker_watcher/worker_watcher.go | 4 |
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 |