Reworked code review comments

This commit is contained in:
Stef Heyenrath
2018-05-12 12:45:58 +02:00
parent 9d6df1c7c8
commit d3640d065e
3 changed files with 36 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
using System;
using System.Linq;
using System.Linq;
using JetBrains.Annotations;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using WireMock.Validation;
@@ -47,11 +47,11 @@ namespace WireMock.Matchers
try
{
var jtoken = JToken.Parse(input);
match = IsMatch(jtoken);
match = IsMatch(jtoken);
}
catch (Exception)
catch (JsonException)
{
// just ignore exception
// just ignore JsonException
}
}
@@ -70,9 +70,9 @@ namespace WireMock.Matchers
JToken jtoken = input is JToken token ? token : JObject.FromObject(input);
match = IsMatch(jtoken);
}
catch (Exception)
catch (JsonException)
{
// just ignore exception
// just ignore JsonException
}
}