Fix Style/CaseIndentation cop violations

This commit is contained in:
Stan Hu
2015-06-22 22:25:21 -07:00
parent 359ed48638
commit 3446bea719
+10 -10
View File
@@ -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