Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
StefH authored Jul 17, 2024
1 parent 95a21f9 commit fd00025
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,8 @@ private double GetMatchScore(IRequestMessage requestMessage)
return MatchScores.Perfect;
}

if (Matchers != null)
{
// Return the score based on Matchers and valuesPresentInRequestMessage
return CalculateScore(Matchers, valuesPresentInRequestMessage);
}

return MatchScores.Mismatch;
// Return the score based on Matchers and valuesPresentInRequestMessage
return CalculateScore(Matchers, valuesPresentInRequestMessage);
}

private static double CalculateScore(IReadOnlyList<IStringMatcher> matchers, WireMockList<string> valuesPresentInRequestMessage)
Expand Down

0 comments on commit fd00025

Please sign in to comment.