Skip to content

Commit

Permalink
fix: don't try and fix producer keys for a nil string
Browse files Browse the repository at this point in the history
Not sure how there is a nil string here, but at least it will more the error somewhere less confusing.
  • Loading branch information
bethesque committed Mar 14, 2019
1 parent f3d4f7c commit 94245c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact/consumer_contract/consumer_contract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def self.from_uri uri, options = {}
end

def self.maintain_backwards_compatiblity_with_producer_keys string
string.gsub('"producer":', '"provider":').gsub('"producer_state":', '"provider_state":')
string.gsub('"producer":', '"provider":').gsub('"producer_state":', '"provider_state":') if string
end

def find_interaction criteria
Expand Down

0 comments on commit 94245c7

Please sign in to comment.