Skip to content

Commit e4d1c72

Browse files
committed
fix indentation for cleaner diff
1 parent 9910fda commit e4d1c72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules/AvoidAssignmentToAutomaticVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
5252
if (_readOnlyAutomaticVariables.Contains(variableName, StringComparer.OrdinalIgnoreCase))
5353
{
5454
yield return new DiagnosticRecord(DiagnosticRecordHelper.FormatError(Strings.AvoidAssignmentToReadOnlyAutomaticVariableError, variableName),
55-
variableExpressionAst.Extent, GetName(), DiagnosticSeverity.Error, fileName);
55+
variableExpressionAst.Extent, GetName(), DiagnosticSeverity.Error, fileName);
5656
}
5757

5858
if (_readOnlyAutomaticVariablesIntroducedInVersion6_0.Contains(variableName, StringComparer.OrdinalIgnoreCase))
5959
{
6060
var severity = IsPowerShellVersion6OrGreater() ? DiagnosticSeverity.Error : DiagnosticSeverity.Warning;
6161
yield return new DiagnosticRecord(DiagnosticRecordHelper.FormatError(Strings.AvoidAssignmentToReadOnlyAutomaticVariableIntroducedInPowerShell6_0Error, variableName),
62-
variableExpressionAst.Extent, GetName(), severity, fileName);
62+
variableExpressionAst.Extent, GetName(), severity, fileName);
6363
}
6464
}
6565

0 commit comments

Comments
 (0)