Skip to content

Commit

Permalink
Merge pull request #3508 from sap-contributions/remove-unreachable-re…
Browse files Browse the repository at this point in the history
…scues

Remove unreachable rescue
  • Loading branch information
philippthun committed Nov 20, 2023
2 parents cdb540c + 2aa8827 commit 4666ae6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions app/controllers/v3/service_credential_bindings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ def parameters
raise CloudController::Errors::ApiError.
new_from_details('ServiceFetchBindingParametersNotSupported').
with_response_code(502)
rescue LockCheck::ServiceBindingLockedError => e
raise CloudController::Errors::ApiError.new_from_details('AsyncServiceBindingOperationInProgress', e.service_binding.app.name, e.service_binding.service_instance.name)
end

private
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/v3/service_route_bindings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ def parameters
rescue ServiceBindingRead::NotSupportedError
bad_request!('user provided service instances do not support fetching route bindings parameters.') if @route_binding.service_instance.user_provided_instance?
bad_request!('this service does not support fetching route bindings parameters.')
rescue LockCheck::ServiceBindingLockedError
unprocessable!('There is an operation in progress for the service route binding.')
end

private
Expand Down

0 comments on commit 4666ae6

Please sign in to comment.