Remove useless return
This commit is contained in:
parent
5cd7b8033a
commit
72c99b58ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue