Skip to content

Commit fbeaafa

Browse files
committed
Remove Score = -100 from result objects in PluginManager
Removed the `Score = -100` property from multiple result objects in `PluginManager.cs` to simplify the code and improve clarity. Adjusted the formatting and structure to ensure proper syntax and maintain code consistency. This includes changes to result objects that handle re-querying and exception handling.
1 parent 68454a8 commit fbeaafa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,7 @@ public static async Task<List<Result>> QueryForPluginAsync(PluginPair pair, Quer
411411
{
412412
PublicApi.Instance.ReQuery();
413413
return false;
414-
},
415-
Score = -100
414+
}
416415
};
417416
results.Add(r);
418417
return results;
@@ -450,8 +449,7 @@ public static async Task<List<Result>> QueryForPluginAsync(PluginPair pair, Quer
450449
ActionKeywordAssigned = query.ActionKeyword,
451450
PluginID = metadata.ID,
452451
OriginQuery = query,
453-
Action = _ => { throw new FlowPluginException(metadata, e);},
454-
Score = -100
452+
Action = _ => { throw new FlowPluginException(metadata, e);}
455453
};
456454
results.Add(r);
457455
}
@@ -479,8 +477,7 @@ public static async Task<List<Result>> QueryHomeForPluginAsync(PluginPair pair,
479477
{
480478
PublicApi.Instance.ReQuery();
481479
return false;
482-
},
483-
Score = -100
480+
}
484481
};
485482
results.Add(r);
486483
return results;

0 commit comments

Comments
 (0)