@@ -19,7 +19,7 @@ public class ResultsViewModel : BaseModel
19
19
20
20
public ResultCollection Results { get ; }
21
21
22
- private readonly object _collectionLock = new object ( ) ;
22
+ private readonly object _collectionLock = new ( ) ;
23
23
private readonly Settings _settings ;
24
24
private int MaxResults => _settings ? . MaxResultsToShow ?? 6 ;
25
25
@@ -89,7 +89,7 @@ public double ItemHeightSize
89
89
90
90
#region Private Methods
91
91
92
- private int InsertIndexOf ( int newScore , IList < ResultViewModel > list )
92
+ private static int InsertIndexOf ( int newScore , IList < ResultViewModel > list )
93
93
{
94
94
int index = 0 ;
95
95
for ( ; index < list . Count ; index ++ )
@@ -118,7 +118,6 @@ private int NewIndex(int i)
118
118
}
119
119
}
120
120
121
-
122
121
#endregion
123
122
124
123
#region Public Methods
@@ -190,10 +189,10 @@ public void AddResults(ICollection<ResultsForUpdate> resultsForUpdates, Cancella
190
189
if ( token . IsCancellationRequested )
191
190
return ;
192
191
193
- UpdateResults ( newResults , token , reselect ) ;
192
+ UpdateResults ( newResults , reselect , token ) ;
194
193
}
195
194
196
- private void UpdateResults ( List < ResultViewModel > newResults , CancellationToken token = default , bool reselect = true )
195
+ private void UpdateResults ( List < ResultViewModel > newResults , bool reselect = true , CancellationToken token = default )
197
196
{
198
197
lock ( _collectionLock )
199
198
{
0 commit comments