Always return filled result again

This commit is contained in:
SysC0mp 2019-12-11 19:10:11 +01:00
parent 971e1cdbec
commit 0f9da7f519
2 changed files with 3 additions and 5 deletions

View File

@ -78,8 +78,8 @@ namespace Wox.Plugin.Program
}
var results1 = win32.AsParallel()
.Where(p => p.Enabled)
.Select(p => p.Result(query.Search, _context.API));
.Where(p => p.Enabled)
.Select(p => p.Result(query.Search, _context.API));
var results2 = uwps.AsParallel()
.Where(p => p.Enabled)

View File

@ -99,9 +99,7 @@ namespace Wox.Infrastructure
RawScore = Math.Max(score, pinyinScore)
};
return result.Score > 0 ?
result :
new MatchResult { Success = false };
return result;
}
return new MatchResult { Success = false };