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

Commit b10e225

Browse files
committed
I have obviously don't know how Asserts work
1 parent 8e14765 commit b10e225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.UI/Behaviours/AddEmptyItemToList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected override void OnAttached()
5656
dynamic items = AssociatedObject.ItemsSource;
5757
var list = items as IList;
5858
Debug.Assert(list != null, "ItemsSource data source is not an IList, cannot change it.");
59-
Debug.Assert(list.Count == 0, "ItemsSource data source is empty, something went wrong.");
59+
Debug.Assert(list.Count > 0, "ItemsSource data source is empty, something went wrong.");
6060
if (list == null || list.Count == 0)
6161
return;
6262
if (items[0] == defaultValue)

0 commit comments

Comments
 (0)