Skip to content

Commit

Permalink
Thank you for your pull request. We are auto-formating your source co…
Browse files Browse the repository at this point in the history
…de to follow our code guidelines.
  • Loading branch information
GitHub Actions Autoformatter committed Feb 13, 2023
1 parent 9ccce5d commit dca95a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Core/src/WeakList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public void Remove(T item)
for (int i = _list.Count - 1; i >= 0; i--)
{
w = _list[i];
if (w.TryGetTarget (out T? target))
if (w.TryGetTarget(out T? target))
{
if (target == item)
{
_list.RemoveAt (i);
_list.RemoveAt(i);
break;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/Core/tests/UnitTests/WeakListTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public async Task ObjectsAreEvicted_GetEnumerator()
GC.Collect();
GC.WaitForPendingFinalizers();

foreach (var _ in list) ;
foreach (var _ in list)
;

Assert.Equal(1, list.Count);
Assert.Equal(expected, list.First());
Expand Down

0 comments on commit dca95a3

Please sign in to comment.