Skip to content

Commit 289280c

Browse files
committed
Run rubocop autocorrect
1 parent 96fe5ed commit 289280c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

app/presenters/v3/droplet_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def droplet_buildpack_info
7070
name_to_lookup = buildpack.buildpack_url
7171
name_to_print = CloudController::UrlSecretObfuscator.obfuscate(buildpack.buildpack_url)
7272
end
73-
detect_output = droplet.buildpack_receipt_buildpack == (name_to_lookup) ? droplet.buildpack_receipt_detect_output : nil
73+
detect_output = droplet.buildpack_receipt_buildpack == name_to_lookup ? droplet.buildpack_receipt_detect_output : nil
7474
{
7575
name: name_to_print,
7676
detect_output: detect_output,

lib/cloud_controller/diego/app_recipe_builder.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def generate_routes(info)
166166

167167
{
168168
CF_ROUTES_KEY => Oj.dump(http_routes),
169-
TCP_ROUTES_KEY => Oj.dump((info['tcp_routes'] || [])),
170-
INTERNAL_ROUTES_KEY => Oj.dump((info['internal_routes'] || []))
169+
TCP_ROUTES_KEY => Oj.dump(info['tcp_routes'] || []),
170+
INTERNAL_ROUTES_KEY => Oj.dump(info['internal_routes'] || [])
171171
}
172172
end
173173

spec/logcache/container_metric_batcher_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def generate_batch(size, offset: 0, last_timestamp: TimeUtils.to_nanoseconds(Tim
512512
Timecop.freeze do
513513
subject
514514

515-
start_time = TimeUtils.to_nanoseconds((Time.now - lookback_window))
515+
start_time = TimeUtils.to_nanoseconds(Time.now - lookback_window)
516516
end_time = TimeUtils.to_nanoseconds(Time.now)
517517
expect(wrapped_logcache_client).to have_received(:container_metrics).
518518
with(hash_including(start_time:, end_time:))
@@ -545,7 +545,7 @@ def generate_batch(size, offset: 0, last_timestamp: TimeUtils.to_nanoseconds(Tim
545545
Timecop.freeze(call_time) do
546546
expect(subject).to have(2001).items
547547

548-
start_time = TimeUtils.to_nanoseconds((call_time - lookback_window))
548+
start_time = TimeUtils.to_nanoseconds(call_time - lookback_window)
549549
expect(wrapped_logcache_client).to have_received(:container_metrics).
550550
with(hash_including(start_time: start_time, end_time: call_time_ns))
551551

spec/support/legacy_api_dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def standard_list_parameters(controller, outer_model: nil, exclude_parameters: [
213213
query_parameter_description += 'Format queries as &lt;filter&gt;&lt;op&gt;&lt;value&gt;<br/>'
214214
query_parameter_description += ' Valid ops: : &gt;= &lt;= &lt; &gt; IN<br/>'
215215
query_parameter_description += " Valid filters: #{query_parameters.to_a.join(', ')}"
216-
if outer_model && query_parameters.include?((outer_model.to_s + '_guid'))
216+
if outer_model && query_parameters.include?(outer_model.to_s + '_guid')
217217
query_parameter_description += "<br/> (Note that filtering on #{outer_model}_guid will return an empty list " \
218218
'if you specify anything other than the guid included in the path.)'
219219
end

0 commit comments

Comments
 (0)