Skip to content

Commit

Permalink
Whitespace changes (#100)
Browse files Browse the repository at this point in the history
* This PR contains only whitespace changes
  • Loading branch information
kspurgin authored Mar 5, 2021
1 parent a9323e5 commit 94229e5
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions lib/collectionspace/mapper/data_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@ def initialize(record_mapper:, client:, cache: nil,

def process(data)
response = CollectionSpace::Mapper::setup_data(data, @defaults, @config)
if response.valid?
case record_type
when 'authorityhierarchy'
prepper = CollectionSpace::Mapper::AuthorityHierarchyPrepper.new(response, self)
prepper.prep
map(prepper.response, prepper.xphash)
when 'nonhierarchicalrelationship'
prepper = CollectionSpace::Mapper::NonHierarchicalRelationshipPrepper.new(response, self)
prepper.prep
prepper.responses.map{ |response| map(response, prepper.xphash) }
else
prepper = CollectionSpace::Mapper::DataPrepper.new(response, self)
prepper.prep
map(prepper.response, prepper.xphash)
end
if response.valid?
case record_type
when 'authorityhierarchy'
prepper = CollectionSpace::Mapper::AuthorityHierarchyPrepper.new(response, self)
prepper.prep
map(prepper.response, prepper.xphash)
when 'nonhierarchicalrelationship'
prepper = CollectionSpace::Mapper::NonHierarchicalRelationshipPrepper.new(response, self)
prepper.prep
prepper.responses.map{ |response| map(response, prepper.xphash) }
else
response
prepper = CollectionSpace::Mapper::DataPrepper.new(response, self)
prepper.prep
map(prepper.response, prepper.xphash)
end
else
response
end
end

def csidcache
Expand Down

0 comments on commit 94229e5

Please sign in to comment.