diff --git a/v2rayN/v2rayN/Common/Utils.cs b/v2rayN/v2rayN/Common/Utils.cs
index 4b87d590..c74ade7d 100644
--- a/v2rayN/v2rayN/Common/Utils.cs
+++ b/v2rayN/v2rayN/Common/Utils.cs
@@ -525,7 +525,6 @@ namespace v2rayN
}
}
-
///
/// 获取启动了应用程序的可执行文件的路径
///
diff --git a/v2rayN/v2rayN/Handler/ConfigHandler.cs b/v2rayN/v2rayN/Handler/ConfigHandler.cs
index 7fa52b9d..50e8c4a3 100644
--- a/v2rayN/v2rayN/Handler/ConfigHandler.cs
+++ b/v2rayN/v2rayN/Handler/ConfigHandler.cs
@@ -253,7 +253,7 @@ namespace v2rayN.Handler
public static int ImportOldGuiConfig(Config config, string fileName)
{
- string result = Utils.LoadResource(fileName);
+ var result = Utils.LoadResource(fileName);
if (Utils.IsNullOrEmpty(result))
{
return -1;
diff --git a/v2rayN/v2rayN/Handler/CoreConfigV2ray.cs b/v2rayN/v2rayN/Handler/CoreConfigV2ray.cs
index a77e94bc..18b8a6f8 100644
--- a/v2rayN/v2rayN/Handler/CoreConfigV2ray.cs
+++ b/v2rayN/v2rayN/Handler/CoreConfigV2ray.cs
@@ -721,11 +721,11 @@ namespace v2rayN.Handler
outbound.settings.userLevel = 0;
}
- var obj = JsonUtils.ParseJson(normalDNS) ?? new JObject();
+ var obj = JsonUtils.ParseJson(normalDNS) ?? [];
if (!obj.ContainsKey("servers"))
{
- List servers = new();
+ List servers = [];
string[] arrDNS = normalDNS.Split(',');
foreach (string str in arrDNS)
{