Replace all Utils.IsNotEmpty(variable) with variable.IsNotEmpty()

This commit is contained in:
2dust
2025-03-05 16:42:43 +08:00
parent 78fde575d7
commit f3af831cf2
33 changed files with 128 additions and 133 deletions
@@ -62,7 +62,7 @@ namespace ServiceLib.ViewModels
private async Task SaveSettingAsync()
{
if (Utils.IsNotEmpty(normalDNS))
if (normalDNS.IsNotEmpty())
{
var obj = JsonUtils.ParseJson(normalDNS);
if (obj != null && obj["servers"] != null)
@@ -77,7 +77,7 @@ namespace ServiceLib.ViewModels
}
}
}
if (Utils.IsNotEmpty(normalDNS2))
if (normalDNS2.IsNotEmpty())
{
var obj2 = JsonUtils.Deserialize<Dns4Sbox>(normalDNS2);
if (obj2 == null)
@@ -86,7 +86,7 @@ namespace ServiceLib.ViewModels
return;
}
}
if (Utils.IsNotEmpty(tunDNS2))
if (tunDNS2.IsNotEmpty())
{
var obj2 = JsonUtils.Deserialize<Dns4Sbox>(tunDNS2);
if (obj2 == null)