Skip to content

Commit

Permalink
chore: remove unused code from http_consumer_contract_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 18, 2018
1 parent 1d661e3 commit caaa67b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/pact/consumer_contract/http_consumer_contract_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@ class HttpConsumerContractParser

def call(hash)
hash = symbolize_keys(hash)
interactions = if hash[:interactions]
hash[:interactions].collect { |hash| Interaction.from_hash(hash)}
elsif hash[:messages]
hash[:messages].collect { |hash| Message.from_hash(hash)}
else
[] # or raise an error?
end
interactions = hash[:interactions].collect { |hash| Interaction.from_hash(hash)}

ConsumerContract.new(
:consumer => ServiceConsumer.from_hash(hash[:consumer]),
Expand Down

0 comments on commit caaa67b

Please sign in to comment.