Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
[CodeIssues] ')edundant field initializer' issue no longer greys out
Browse files Browse the repository at this point in the history
the field name.
  • Loading branch information
Mike Krüger committed Aug 30, 2012
1 parent 3451f5c commit d69edd3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public override void VisitFieldDeclaration (FieldDeclaration fieldDeclaration)
if (!defaultValueExpr.Match (variable.Initializer).Success)
continue;

AddIssue (variable, ctx.TranslateString ("Remove redundant field initializer"),
AddIssue (variable.Initializer, ctx.TranslateString ("Remove redundant field initializer"),
script => script.Replace (variable, new VariableInitializer (variable.Name)));
}
}
Expand Down

0 comments on commit d69edd3

Please sign in to comment.