diff options
author | Valery Piashchynski <[email protected]> | 2021-11-06 17:31:09 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-11-06 17:31:09 +0300 |
commit | c639dd2ffde1b6c8679d4b3fe6f16130ed091299 (patch) | |
tree | 9020d9f60fd5b3c3bd0c7f8b674cfe978ea1e4cc /worker_watcher/worker_watcher.go | |
parent | b9d24b98b93b64e359ae7984917a6094c6de991c (diff) |
remove redundand error check
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'worker_watcher/worker_watcher.go')
-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 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 |