Commit 72c99b58 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Remove useless return

parent 5cd7b803
...@@ -21,7 +21,7 @@ module Gitlab ...@@ -21,7 +21,7 @@ module Gitlab
raise FailedToObtainLockError, 'Failed to obtain a lock' unless uuid raise FailedToObtainLockError, 'Failed to obtain a lock' unless uuid
return yield yield
ensure ensure
Gitlab::ExclusiveLease.cancel(key, uuid) Gitlab::ExclusiveLease.cancel(key, uuid)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment