mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
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:
parent
7e332fa615
commit
30d7f67d42
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue