diff --git a/src/Analyzers.CodeFixes/CSharp/CodeFixes/AddOrRemoveParenthesesWhenCreatingNewObjectCodeFixProvider.cs b/src/Analyzers.CodeFixes/CSharp/CodeFixes/AddOrRemoveParenthesesWhenCreatingNewObjectCodeFixProvider.cs index ad3c431f55..f611275ef4 100644 --- a/src/Analyzers.CodeFixes/CSharp/CodeFixes/AddOrRemoveParenthesesWhenCreatingNewObjectCodeFixProvider.cs +++ b/src/Analyzers.CodeFixes/CSharp/CodeFixes/AddOrRemoveParenthesesWhenCreatingNewObjectCodeFixProvider.cs @@ -35,7 +35,7 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context) if (objectCreationExpression.ArgumentList != null) { CodeAction codeAction = CodeAction.Create( - "Add parentheses", + "Remove parentheses", ct => RemoveParenthesesAsync(document, objectCreationExpression.ArgumentList, ct), GetEquivalenceKey(diagnostic)); @@ -44,7 +44,7 @@ public override async Task RegisterCodeFixesAsync(CodeFixContext context) else { CodeAction codeAction = CodeAction.Create( - "Remove parentheses", + "Add parentheses", ct => AddParenthesesAsync(document, objectCreationExpression, ct), GetEquivalenceKey(diagnostic));