Code clean

This commit is contained in:
2dust
2024-08-20 14:30:45 +08:00
parent 8d1d10b783
commit a6f27e5071
12 changed files with 23 additions and 27 deletions
+1 -1
View File
@@ -366,7 +366,7 @@ namespace ServiceLib.Common
public static bool IsBase64String(string plainText)
{
if(plainText.IsNullOrEmpty()) return false;
if (plainText.IsNullOrEmpty()) return false;
var buffer = new Span<byte>(new byte[plainText.Length]);
return Convert.TryFromBase64String(plainText, buffer, out int _);
}
+2 -4
View File
@@ -1,11 +1,9 @@
global using ServiceLib;
global using ServiceLib.Base;
global using ServiceLib.Base;
global using ServiceLib.Common;
global using ServiceLib.Enums;
global using ServiceLib.Handler;
global using ServiceLib.Handler.CoreConfig;
global using ServiceLib.Handler.Fmt;
global using ServiceLib.Handler.Statistics;
global using ServiceLib.Enums;
global using ServiceLib.Models;
global using ServiceLib.ViewModels;
global using ServiceLib.Resx;
+1 -1
View File
@@ -58,7 +58,7 @@ namespace ServiceLib.Handler
{
_processJob ??= new();
_processJob?.AddProcess(processHandle);
}
}
}
#endregion Config
+1 -1
View File
@@ -40,7 +40,7 @@ namespace ServiceLib.Handler
_updateFunc(false, ResUI.MsgDownloadV2rayCoreSuccessfully);
string fileName = Utils.GetTempPath(Utils.GetDownloadFileName(url));
fileName = Utils.UrlEncode(fileName);
_updateFunc(true, fileName);
_updateFunc(true, fileName);
}
else
{