mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-29 05:11:46 +02:00
Fix some SonarCloud issues (#955)
* Fixed some SonarCloud issues
* if (value.Contains('\n'))
This commit is contained in:
@@ -138,7 +138,7 @@ internal static class CSharpFormatter
|
||||
return "\"\"";
|
||||
}
|
||||
|
||||
if (value.Contains("\n"))
|
||||
if (value.Contains('\n'))
|
||||
{
|
||||
var escapedValue = value?.Replace("\"", "\"\"") ?? string.Empty;
|
||||
return $"@\"{escapedValue}\"";
|
||||
|
||||
Reference in New Issue
Block a user