Skip to content

Commit

Permalink
IDE0303 Collection initialization can be simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnmbond committed Nov 18, 2024
1 parent ea67e87 commit a37d629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RefitClassSourceGenerator/CodeFixProviderRefit001.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace RefitClassSourceGenerator;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(CodeFixProviderRefit001)), Shared]
public class CodeFixProviderRefit001 : CodeFixProvider
{
public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create("REFIT001");
public sealed override ImmutableArray<string> FixableDiagnosticIds => ["REFIT001"];

public sealed override FixAllProvider GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer;

Expand Down
2 changes: 1 addition & 1 deletion RefitClassSourceGenerator/CodeFixProviderRefit002.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace RefitClassSourceGenerator;
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(CodeFixProviderRefit002)), Shared]
public class CodeFixProviderRefit002 : CodeFixProvider
{
public sealed override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create("REFIT002");
public sealed override ImmutableArray<string> FixableDiagnosticIds => ["REFIT002"];

public sealed override FixAllProvider GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer;

Expand Down

0 comments on commit a37d629

Please sign in to comment.