Commit 3446bea7 authored by Stan Hu's avatar Stan Hu

Fix Style/CaseIndentation cop violations

parent 359ed486
...@@ -98,16 +98,16 @@ describe 'Gitlab::Satellite::Action' do ...@@ -98,16 +98,16 @@ describe 'Gitlab::Satellite::Action' do
def flocked?(&block) def flocked?(&block)
status = flock LOCK_EX|LOCK_NB status = flock LOCK_EX|LOCK_NB
case status case status
when false when false
return true return true
when 0 when 0
begin begin
block ? block.call : false block ? block.call : false
ensure ensure
flock LOCK_UN flock LOCK_UN
end end
else else
raise SystemCallError, status raise SystemCallError, status
end end
end end
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