Remove useless return

This commit is contained in:
Lin Jen-Shin 2018-07-09 17:13:11 +08:00
parent 5cd7b8033a
commit 72c99b58ab

View file

@ -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