Skip to content

Commit

Permalink
Warning ignorance
Browse files Browse the repository at this point in the history
Signed-off-by: Rekkonnect <[email protected]>
  • Loading branch information
Rekkonnect authored and AraHaan committed May 7, 2024
1 parent c819fe0 commit 7f41625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/IDisposableGenerator/WorkItemCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public int IndexOf(WorkItem item)

foreach (var attr in testClass.GetAttributes())
{
#pragma warning disable IDE0010 // Add missing cases
switch (attr.AttributeClass!.Name)
{
case "GenerateDisposeAttribute":
Expand All @@ -67,12 +68,11 @@ public int IndexOf(WorkItem item)
case "GenerateThrowIfDisposedAttribute":
result.ThrowIfDisposed = true;
break;
default:
break;
}
#pragma warning restore IDE0010 // Add missing cases
}

return !hasDisposalGeneration ? null : result;
return hasDisposalGeneration ? result : null;
}

private static void CheckAttributesOnMember(ISymbol member,
Expand Down

0 comments on commit 7f41625

Please sign in to comment.