From e563cac4fc0862d3cf7e5ea3183c7aea68d87296 Mon Sep 17 00:00:00 2001 From: status102 Date: Sun, 22 Oct 2023 16:59:41 +0800 Subject: [PATCH] fix: qodana --- src/MaaWpfGui/Helper/ConfigurationHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MaaWpfGui/Helper/ConfigurationHelper.cs b/src/MaaWpfGui/Helper/ConfigurationHelper.cs index 3a5e97a145..8f1db0cef0 100644 --- a/src/MaaWpfGui/Helper/ConfigurationHelper.cs +++ b/src/MaaWpfGui/Helper/ConfigurationHelper.cs @@ -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) {