Skip to content

Commit a29ba44

Browse files
authored
Merge pull request cloudfoundry#3188 from sap-contributions/bump-rubocop
bump rubocop from 1.44.1 to 1.45.1
2 parents 41706a5 + 3aa2622 commit a29ba44

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ group :test do
8989
gem 'rspec-rails', '~> 6.0.1'
9090
gem 'rspec-wait'
9191
gem 'rspec_api_documentation', '>= 6.1.0'
92-
gem 'rubocop', '~> 1.44.1'
92+
gem 'rubocop', '~> 1.45.1'
9393
gem 'timecop'
9494
gem 'webmock', '> 2.3.1'
9595
end

Gemfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ GEM
380380
rb-inotify (0.10.1)
381381
ffi (~> 1.0)
382382
recursive-open-struct (1.1.3)
383-
regexp_parser (2.6.2)
383+
regexp_parser (2.7.0)
384384
representable (3.2.0)
385385
declarative (< 0.1.0)
386386
trailblazer-option (>= 0.1.1, < 0.2.0)
@@ -432,7 +432,7 @@ GEM
432432
activesupport (>= 3.0.0)
433433
mustache (~> 1.0, >= 0.99.4)
434434
rspec (~> 3.0)
435-
rubocop (1.44.1)
435+
rubocop (1.45.1)
436436
json (~> 2.3)
437437
parallel (~> 1.10)
438438
parser (>= 3.2.0.0)
@@ -605,7 +605,7 @@ DEPENDENCIES
605605
rspec-rails (~> 6.0.1)
606606
rspec-wait
607607
rspec_api_documentation (>= 6.1.0)
608-
rubocop (~> 1.44.1)
608+
rubocop (~> 1.45.1)
609609
rubyzip (>= 1.3.0)
610610
sequel (~> 5.65)
611611
sequel_pg

app/controllers/v3/space_features_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def index
1616
def show
1717
space = SpaceFetcher.new.fetch(hashed_params[:guid])
1818
resource_not_found!(:space) unless space && permission_queryer.can_read_from_space?(space.id, space.organization_id)
19-
resource_not_found!(:feature) unless SPACE_FEATURE == hashed_params[:name]
19+
resource_not_found!(:feature) unless hashed_params[:name] == SPACE_FEATURE
2020

2121
render status: :ok, json: Presenters::V3::SpaceSshFeaturePresenter.new(space)
2222
end
@@ -27,7 +27,7 @@ def update
2727

2828
space = SpaceFetcher.new.fetch(hashed_params[:guid])
2929
resource_not_found!(:space) unless space && permission_queryer.can_read_from_space?(space.id, space.organization_id)
30-
resource_not_found!(:feature) unless SPACE_FEATURE == hashed_params[:name]
30+
resource_not_found!(:feature) unless hashed_params[:name] == SPACE_FEATURE
3131
unauthorized! unless permission_queryer.can_update_active_space?(space.id, space.organization_id)
3232
suspended! unless permission_queryer.is_space_active?(space.id)
3333

lib/cloud_controller/diego/reporters/instances_reporter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def logger
113113

114114
def running_or_starting?(lrp)
115115
translated_state = LrpStateTranslator.translate_lrp_state(lrp)
116-
return true if VCAP::CloudController::Diego::LRP_RUNNING == translated_state
117-
return true if VCAP::CloudController::Diego::LRP_STARTING == translated_state
116+
return true if translated_state == VCAP::CloudController::Diego::LRP_RUNNING
117+
return true if translated_state == VCAP::CloudController::Diego::LRP_STARTING
118118

119119
false
120120
end

0 commit comments

Comments
 (0)