We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b06e014 commit f7460b1Copy full SHA for f7460b1
netmockery/JSONReader.cs
@@ -179,8 +179,7 @@ public ResponseCreator CreateResponseCreator(Endpoint endpoint)
179
180
responseCreator.SetDelayFromConfigValue(delay);
181
182
- var simpleResponseCreator = responseCreator as SimpleResponseCreator;
183
- if (simpleResponseCreator != null)
+ if (responseCreator is SimpleResponseCreator simpleResponseCreator)
184
{
185
simpleResponseCreator.ContentType = contenttype;
186
if (replacements != null)
0 commit comments