Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit a9f4fb0

Browse files
committed
Make the logic clearer
1 parent 088afe2 commit a9f4fb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Exports.Reactive/Collections/TrackingCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static ObservableCollection<T> CreateListenerCollection<T>(this ITracking
8989

9090
selection.Subscribe(x =>
9191
{
92-
hasSelection = !(x == null || object.Equals(x, stickieItemOnTop));
92+
hasSelection = x != null && !object.Equals(x, stickieItemOnTop);
9393
var hasStickie = result.FirstOrDefault() == stickieItemOnTop;
9494

9595
if (hasSelection && !hasStickie)

0 commit comments

Comments
 (0)