mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 10:18:26 +02:00
* Lower priority from Proxy mappings * Fix codefactor * extra tests * #205 * Fix test for linux * `c:\temp\x.json` fix * Extra tests * more tests * more tests * codefactor * #200 * refactor * refactor * tests
This commit is contained in:
@@ -22,8 +22,7 @@ namespace WireMock.Transformers
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
// Ignore JsonException and return
|
||||
return;
|
||||
// Ignore JsonException
|
||||
}
|
||||
});
|
||||
|
||||
@@ -41,8 +40,7 @@ namespace WireMock.Transformers
|
||||
}
|
||||
catch (JsonException)
|
||||
{
|
||||
// Ignore JsonException and return
|
||||
return;
|
||||
// Ignore JsonException
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -69,7 +67,7 @@ namespace WireMock.Transformers
|
||||
throw new NotSupportedException($"The value '{arguments[0]}' with type '{arguments[0]?.GetType()}' cannot be used in Handlebars JsonPath.");
|
||||
}
|
||||
|
||||
return (valueToProcess, arguments[1] as string);
|
||||
return (valueToProcess, (string) arguments[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -24,8 +24,7 @@ namespace WireMock.Transformers
|
||||
}
|
||||
catch (ParseException)
|
||||
{
|
||||
// Ignore ParseException and return
|
||||
return;
|
||||
// Ignore ParseException
|
||||
}
|
||||
});
|
||||
|
||||
@@ -40,8 +39,7 @@ namespace WireMock.Transformers
|
||||
}
|
||||
catch (ParseException)
|
||||
{
|
||||
// Ignore ParseException and return
|
||||
return;
|
||||
// Ignore ParseException
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -82,7 +80,7 @@ namespace WireMock.Transformers
|
||||
throw new NotSupportedException($"The value '{arguments[0]}' with type '{arguments[0]?.GetType()}' cannot be used in Handlebars Linq.");
|
||||
}
|
||||
|
||||
return (valueToProcess, arguments[1] as string);
|
||||
return (valueToProcess, (string) arguments[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Linq;
|
||||
using System.Text.RegularExpressions;
|
||||
using HandlebarsDotNet;
|
||||
using WireMock.Utils;
|
||||
using WireMock.Util;
|
||||
using WireMock.Validation;
|
||||
|
||||
namespace WireMock.Transformers
|
||||
@@ -52,7 +52,7 @@ namespace WireMock.Transformers
|
||||
{
|
||||
if (arg is string)
|
||||
{
|
||||
return arg as string;
|
||||
return (string) arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user