mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-06 03:07:54 +08:00
fixup
This commit is contained in:
parent
fb5938280e
commit
72b41f4322
@ -48,13 +48,9 @@ namespace Wox.Plugin.Program
|
|||||||
|
|
||||||
public List<Result> Query(Query query)
|
public List<Result> Query(Query query)
|
||||||
{
|
{
|
||||||
var results1 = _win32s.AsParallel()
|
var results1 = _win32s.AsParallel().Select(p => p.Result(query.Search, _context.API));
|
||||||
.Select(p => p.Result(query.Search, _context.API))
|
var results2 = _uwps.AsParallel().Select(p => p.Result(query.Search, _context.API));
|
||||||
.Where(r => r.Score > 0);
|
var result = results1.Concat(results2).Where(r => r.Score > 0).ToList();
|
||||||
var results2 = _uwps.AsParallel()
|
|
||||||
.Select(p => p.Result(query.Search, _context.API))
|
|
||||||
.Where(r => r.Score > 0);
|
|
||||||
var result = results1.Concat(results2).ToList();
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user