Skip to content

Commit afccbbc

Browse files
Update src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/SealInternalTypes.cs
Co-authored-by: Youssef Victor <[email protected]>
1 parent 1ac1aad commit afccbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NetAnalyzers/Core/Microsoft.NetCore.Analyzers/Runtime/SealInternalTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ private static void OnCompilationStart(CompilationStartAnalysisContext context)
5050
!type.IsStatic &&
5151
!type.IsSealed &&
5252
!type.IsExternallyVisible() &&
53-
(comImportAttributeType is null || !type.HasAttribute(comImportAttributeType)))
53+
!type.HasAttribute(comImportAttributeType))
5454
{
5555
candidateTypes.Add(type);
5656
}

0 commit comments

Comments
 (0)