Skip to content

Commit

Permalink
Remove unused custom error
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Oleske <[email protected]>
Co-authored-by: Alex Rocha <[email protected]>
  • Loading branch information
moleske and xandroc committed Jul 28, 2022
1 parent 8b858b9 commit a0293e2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/actions/route_transfer_owner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

module VCAP::CloudController
class RouteTransferOwner
class Error < ::StandardError
end

class << self
def transfer(route, target_space, user_audit_info)
return route if target_space.name == route.space.name
Expand All @@ -19,12 +16,6 @@ def transfer(route, target_space, user_audit_info)
Repositories::RouteEventRepository.new.record_route_transfer_owner(
route, user_audit_info, original_space, target_space.guid)
end

private

def error!(message)
raise Error.new(message)
end
end
end
end

0 comments on commit a0293e2

Please sign in to comment.