From 72c99b58abe7bbc956804c9d403689e64f579d3e Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Mon, 9 Jul 2018 17:13:11 +0800 Subject: [PATCH] Remove useless return --- lib/gitlab/exclusive_lease_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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