CA1837
CA1825
CA1829
CA1847
cSpell
This commit is contained in:
2022-02-14 15:24:57 -07:00
parent 1b77400643
commit 817934a255
10 changed files with 41 additions and 19 deletions

View File

@ -16,7 +16,7 @@ public partial class WS
try
{
string json = JsonSerializer.Serialize(payload, payload.GetType());
if (string.IsNullOrEmpty(url) || !url.Contains(":") || !url.Contains("."))
if (string.IsNullOrEmpty(url) || !url.Contains(':') || !url.Contains('.'))
throw new Exception("Invalid URL");
using (HttpClient httpClient = new())
{