Skip to content

Commit 7014a47

Browse files
Fix warnings (#234)
1 parent af6e934 commit 7014a47

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • StyleChecker/StyleChecker/Cleaning/RedundantTypedArrayCreation

StyleChecker/StyleChecker/Cleaning/RedundantTypedArrayCreation/Analyzer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ namespace StyleChecker.Cleaning.RedundantTypedArrayCreation;
1212
using Microsoft.CodeAnalysis.Diagnostics;
1313
using Microsoft.CodeAnalysis.Operations;
1414
using StyleChecker.Refactoring;
15-
using Enumerables = Maroontress.Util.Enumerables;
1615
using R = Resources;
1716

1817
/// <summary>
@@ -166,7 +165,9 @@ The following code results in a compilation error.
166165
.FilterNonNullReference()
167166
.ToFrozenSet();
168167
var excludeTypeSet = rawTypeSet.Where(IsSystemNullableType)
169-
.SelectMany(s => s is INamedTypeSymbol n ? n.TypeArguments : [])
168+
.SelectMany(s => s is INamedTypeSymbol n
169+
? n.TypeArguments
170+
: [])
170171
.ToRigidSet();
171172
var typeSet = rawTypeSet.Where(s => !excludeTypeSet.Contains(s))
172173
.ToFrozenSet();

0 commit comments

Comments
 (0)