Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2018-07-09 12:13:11 +0300
committerLin Jen-Shin <godfat@godfat.org>2018-07-09 16:13:08 +0300
commit72c99b58abe7bbc956804c9d403689e64f579d3e (patch)
tree07922071b799905263380070f632772a930ea184 /lib/gitlab/exclusive_lease_helpers.rb
parent5cd7b8033a842e3cde19d3981a3cde3800fdd7f8 (diff)
Remove useless return
Diffstat (limited to 'lib/gitlab/exclusive_lease_helpers.rb')
-rw-r--r--lib/gitlab/exclusive_lease_helpers.rb2
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