Refactor token cancellation check for readability

Simplified the `if` statement that checks for token cancellation
by condensing it into a single line. This improves code readability
and eliminates unnecessary line breaks.
This commit is contained in:
Jack251970 2025-11-06 15:30:32 +08:00
parent 7e332fa615
commit 30d7f67d42

View file

@ -52,9 +52,7 @@ namespace Flow.Launcher.Plugin.Explorer.Search.Everything
try
{
if (token.IsCancellationRequested)
return false;
if (token.IsCancellationRequested) return false;
_ = EverythingApiDllImport.Everything_GetMajorVersion();
var result = EverythingApiDllImport.Everything_GetLastError() != StateCode.IPCError;
return result;