Skip to content

Commit 8132d2a

Browse files
committed
Run autocorrectable rubocop errors
1 parent 472bfa0 commit 8132d2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/cloud_controller/check_stacks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def validate_stacks
1919

2020
def validate_stack(deprecated_stack)
2121
configured_stacks = @stack_config.stacks
22-
deprecated_stack_in_config = (configured_stacks.find { |stack| stack['name'] == deprecated_stack }).present?
22+
deprecated_stack_in_config = configured_stacks.find { |stack| stack['name'] == deprecated_stack }.present?
2323
return if deprecated_stack_in_config
2424

2525
no_deprecated_stack_in_db = @db.fetch('SELECT 1 FROM stacks WHERE name LIKE ? ', deprecated_stack).empty?

spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ class Foo; extend IntegerArraySerializer; end
1111
let(:serializer) { IntegerArraySerializer.serializer }
1212

1313
it 'raises an error when not passed an array' do
14-
(expect { serializer.call('hello') }).to raise_error(ArgumentError, 'Integer array columns must be passed an array')
14+
expect { serializer.call('hello') }.to raise_error(ArgumentError, 'Integer array columns must be passed an array')
1515
end
1616

1717
it 'raises an error when not passed an array of integers' do
18-
(expect { serializer.call([1, 2, 'derp']) }).to raise_error(ArgumentError, 'All members of the array must be integers')
18+
expect { serializer.call([1, 2, 'derp']) }.to raise_error(ArgumentError, 'All members of the array must be integers')
1919
end
2020

2121
it 'does not raise an error if passed nil' do
22-
(expect { serializer.call(nil) }).not_to raise_error
22+
expect { serializer.call(nil) }.not_to raise_error
2323
end
2424

2525
it 'munges arrays to be in an expected comma-separated format' do

0 commit comments

Comments
 (0)