Skip to content

Commit caaa67b

Browse files
committed
chore: remove unused code from http_consumer_contract_parser
1 parent 1d661e3 commit caaa67b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/pact/consumer_contract/http_consumer_contract_parser.rb

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@ class HttpConsumerContractParser
44

55
def call(hash)
66
hash = symbolize_keys(hash)
7-
interactions = if hash[:interactions]
8-
hash[:interactions].collect { |hash| Interaction.from_hash(hash)}
9-
elsif hash[:messages]
10-
hash[:messages].collect { |hash| Message.from_hash(hash)}
11-
else
12-
[] # or raise an error?
13-
end
7+
interactions = hash[:interactions].collect { |hash| Interaction.from_hash(hash)}
148

159
ConsumerContract.new(
1610
:consumer => ServiceConsumer.from_hash(hash[:consumer]),

0 commit comments

Comments
 (0)