diff --git a/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs b/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs index ceee23c733..ad2f68fa83 100644 --- a/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs +++ b/src/modules/launcher/Wox.Infrastructure/Storage/JsonStorage`1.cs @@ -290,8 +290,8 @@ namespace Wox.Infrastructure.Storage { JsonElement targetElement = root; - // If rootElement is not empty, try to get the specified property - if (!string.IsNullOrEmpty(rootElement) && root.TryGetProperty(rootElement, out var retrievedElement)) + // Try to get the specified property + if (root.TryGetProperty(rootElement, out var retrievedElement)) { targetElement = retrievedElement; }