mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 18:20:39 +08:00
fix: qodana
This commit is contained in:
@@ -372,7 +372,7 @@ namespace MaaWpfGui.Helper
|
||||
try
|
||||
{
|
||||
var obj = (JObject)JsonConvert.DeserializeObject(str);
|
||||
return obj is null ? throw new Exception("Failed to parse json file") : obj;
|
||||
return obj ?? throw new Exception("Failed to parse json file");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user