From 72b41f43220f741e7ceaa92b7b9302defb65b891 Mon Sep 17 00:00:00 2001 From: bao-qian Date: Mon, 22 Aug 2016 09:49:32 +0100 Subject: [PATCH] fixup --- Plugins/Wox.Plugin.Program/Main.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Plugins/Wox.Plugin.Program/Main.cs b/Plugins/Wox.Plugin.Program/Main.cs index 824682b59f..045e42effb 100644 --- a/Plugins/Wox.Plugin.Program/Main.cs +++ b/Plugins/Wox.Plugin.Program/Main.cs @@ -48,13 +48,9 @@ namespace Wox.Plugin.Program public List Query(Query query) { - var results1 = _win32s.AsParallel() - .Select(p => p.Result(query.Search, _context.API)) - .Where(r => r.Score > 0); - var results2 = _uwps.AsParallel() - .Select(p => p.Result(query.Search, _context.API)) - .Where(r => r.Score > 0); - var result = results1.Concat(results2).ToList(); + var results1 = _win32s.AsParallel().Select(p => p.Result(query.Search, _context.API)); + var results2 = _uwps.AsParallel().Select(p => p.Result(query.Search, _context.API)); + var result = results1.Concat(results2).Where(r => r.Score > 0).ToList(); return result; }