Remove useless return
This commit is contained in:
parent
5cd7b8033a
commit
72c99b58ab
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue