RamSearchEngine - tiny code cleanup using Enumerable.Repeat because I just learned of it and it is nifty

This commit is contained in:
adelikat 2013-12-31 20:41:42 +00:00
parent 7e24c75a3d
commit 57f62d13f1
1 changed files with 1 additions and 4 deletions

View File

@ -190,10 +190,7 @@ namespace BizHawk.Client.Common
public bool Preview(int address)
{
var listOfOne = new List<IMiniWatch>
{
_watchList.BinarySearch(x => x.Address, address)
};
var listOfOne = Enumerable.Repeat(_watchList.BinarySearch(x => x.Address, address), 1);
switch (_compareTo)
{