We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c6126 commit c665482Copy full SHA for c665482
Flow.Launcher/Storage/TopMostRecord.cs
@@ -12,13 +12,14 @@ public class TopMostRecord
12
13
internal bool IsTopMost(Result result)
14
{
15
- if (records.IsEmpty || (result.OriginQuery != null && !records.ContainsKey(result.OriginQuery.RawQuery)))
+ if (records.IsEmpty || result.OriginQuery == null ||
16
+ !records.TryGetValue(result.OriginQuery.RawQuery, out var value))
17
18
return false;
19
}
20
21
// since this dictionary should be very small (or empty) going over it should be pretty fast.
- return result.OriginQuery != null && records[result.OriginQuery.RawQuery].Equals(result);
22
+ return value.Equals(result);
23
24
25
internal void Remove(Result result)
0 commit comments