mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 13:16:09 +10:00
Fix Style/CaseIndentation cop violations
This commit is contained in:
@@ -98,16 +98,16 @@ describe 'Gitlab::Satellite::Action' do
|
||||
def flocked?(&block)
|
||||
status = flock LOCK_EX|LOCK_NB
|
||||
case status
|
||||
when false
|
||||
return true
|
||||
when 0
|
||||
begin
|
||||
block ? block.call : false
|
||||
ensure
|
||||
flock LOCK_UN
|
||||
end
|
||||
else
|
||||
raise SystemCallError, status
|
||||
when false
|
||||
return true
|
||||
when 0
|
||||
begin
|
||||
block ? block.call : false
|
||||
ensure
|
||||
flock LOCK_UN
|
||||
end
|
||||
else
|
||||
raise SystemCallError, status
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user