diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2019-04-26 13:28:12 +1000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-04-29 22:55:12 -0700 |
commit | 50fa7847bb89254ab0dbe163b5e71bb43b6d6b14 (patch) | |
tree | 0a3534ab4dd76d2953180d03ac8df766b51f7600 | |
parent | 3cac5b05b2fd8377883d42be5ee5e0fb2370db04 (diff) | |
download | gitlab-ce-50fa7847bb89254ab0dbe163b5e71bb43b6d6b14.tar.gz |
CheckUninstallProgressService remove unnecessary begin
-rw-r--r-- | app/services/clusters/applications/check_uninstall_progress_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/services/clusters/applications/check_uninstall_progress_service.rb b/app/services/clusters/applications/check_uninstall_progress_service.rb index efb2bb1b67d..663e4b1daef 100644 --- a/app/services/clusters/applications/check_uninstall_progress_service.rb +++ b/app/services/clusters/applications/check_uninstall_progress_service.rb @@ -36,9 +36,7 @@ module Clusters def check_timeout if timeouted? - begin - app.make_errored!("Operation timed out. Check pod logs for #{pod_name} for more details.") - end + app.make_errored!("Operation timed out. Check pod logs for #{pod_name} for more details.") else WaitForUninstallAppWorker.perform_in(WaitForUninstallAppWorker::INTERVAL, app.name, app.id) end |