RamSearchEngine - tiny code cleanup using Enumerable.Repeat because I just learned of it and it is nifty
This commit is contained in:
parent
7e24c75a3d
commit
57f62d13f1
|
@ -190,10 +190,7 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
public bool Preview(int address)
|
public bool Preview(int address)
|
||||||
{
|
{
|
||||||
var listOfOne = new List<IMiniWatch>
|
var listOfOne = Enumerable.Repeat(_watchList.BinarySearch(x => x.Address, address), 1);
|
||||||
{
|
|
||||||
_watchList.BinarySearch(x => x.Address, address)
|
|
||||||
};
|
|
||||||
|
|
||||||
switch (_compareTo)
|
switch (_compareTo)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue