diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-07-09 12:13:11 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-09 16:13:08 +0300 |
commit | 72c99b58abe7bbc956804c9d403689e64f579d3e (patch) | |
tree | 07922071b799905263380070f632772a930ea184 /lib/gitlab/exclusive_lease_helpers.rb | |
parent | 5cd7b8033a842e3cde19d3981a3cde3800fdd7f8 (diff) |
Remove useless return
Diffstat (limited to 'lib/gitlab/exclusive_lease_helpers.rb')
-rw-r--r-- | lib/gitlab/exclusive_lease_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/exclusive_lease_helpers.rb b/lib/gitlab/exclusive_lease_helpers.rb index ab6838adc6d..e998548cff9 100644 --- a/lib/gitlab/exclusive_lease_helpers.rb +++ b/lib/gitlab/exclusive_lease_helpers.rb @@ -21,7 +21,7 @@ module Gitlab raise FailedToObtainLockError, 'Failed to obtain a lock' unless uuid - return yield + yield ensure Gitlab::ExclusiveLease.cancel(key, uuid) end |