[CodeFactor] Apply fixes (#6005)

Co-authored-by: codefactor-io <support@codefactor.io>
This commit is contained in:
DecorativeFamily
2024-11-07 10:16:27 +03:30
committed by GitHub
parent 45febe3fff
commit c4b490e46d
12 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;
using System.Text.RegularExpressions;
namespace ServiceLib.Services
@@ -122,7 +122,7 @@ namespace ServiceLib.Services
var url = item.Url.TrimEx();
var userAgent = item.UserAgent.TrimEx();
var hashCode = $"{item.Remarks}->";
if (Utils.IsNullOrEmpty(id) || Utils.IsNullOrEmpty(url) || Utils.IsNotEmpty(subId) && item.Id != subId)
if (Utils.IsNullOrEmpty(id) || Utils.IsNullOrEmpty(url) || (Utils.IsNotEmpty(subId) && item.Id != subId))
{
//_updateFunc?.Invoke(false, $"{hashCode}{ResUI.MsgNoValidSubscription}");
continue;