Skip to content

Commit a3b0ba6

Browse files
committed
Removed nullability warning suppressions
1 parent 26f4907 commit a3b0ba6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Microsoft.Toolkit/Collections/ObservableGroupedCollectionExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void ThrowArgumentExceptionForKeyNotFound()
5757
{
5858
if (source.TryGetList(out var list))
5959
{
60-
foreach (var group in list!)
60+
foreach (var group in list)
6161
{
6262
if (EqualityComparer<TKey>.Default.Equals(group.Key, key))
6363
{
@@ -272,7 +272,7 @@ public static void RemoveGroup<TKey, TValue>(
272272
if (source.TryGetList(out var list))
273273
{
274274
var index = 0;
275-
foreach (var group in list!)
275+
foreach (var group in list)
276276
{
277277
if (EqualityComparer<TKey>.Default.Equals(group.Key, key))
278278
{
@@ -327,7 +327,7 @@ public static void RemoveItem<TKey, TValue>(
327327
if (source.TryGetList(out var list))
328328
{
329329
var index = 0;
330-
foreach (var group in list!)
330+
foreach (var group in list)
331331
{
332332
if (EqualityComparer<TKey>.Default.Equals(group.Key, key))
333333
{
@@ -398,7 +398,7 @@ public static void RemoveItemAt<TKey, TValue>(
398398
if (source.TryGetList(out var list))
399399
{
400400
var groupIndex = 0;
401-
foreach (var group in list!)
401+
foreach (var group in list)
402402
{
403403
if (EqualityComparer<TKey>.Default.Equals(group.Key, key))
404404
{

0 commit comments

Comments
 (0)