Skip to content

Commit f2a518f

Browse files
rjmholtbergmeister
andauthored
Apply suggestions from code review
Co-Authored-By: bergmeister <[email protected]>
1 parent 6e56087 commit f2a518f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rules/UseConsistentIndentation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
151151
break;
152152

153153
case TokenKind.Pipe:
154-
var pipelineIsFollowedByNewlineOrLineContinuation = k < tokens.Length - 1 && k > 0 &&
154+
bool pipelineIsFollowedByNewlineOrLineContinuation = k < tokens.Length - 1 && k > 0 &&
155155
(tokens[k + 1].Kind == TokenKind.NewLine || tokens[k + 1].Kind == TokenKind.LineContinuation);
156156
if (!pipelineIsFollowedByNewlineOrLineContinuation)
157157
{
@@ -163,7 +163,7 @@ public override IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string file
163163
}
164164
else if (pipelineIndentationStyle == PipelineIndentationStyle.IncreaseIndentationForFirstPipeline)
165165
{
166-
var isFirstPipeInPipeline = pipelineAsts.Any(pipelineAst => PositionIsEqual(((PipelineAst)pipelineAst).PipelineElements[0].Extent.EndScriptPosition, tokens[k - 1].Extent.EndScriptPosition));
166+
bool isFirstPipeInPipeline = pipelineAsts.Any(pipelineAst => PositionIsEqual(((PipelineAst)pipelineAst).PipelineElements[0].Extent.EndScriptPosition, tokens[k - 1].Extent.EndScriptPosition));
167167
if (isFirstPipeInPipeline)
168168
{
169169
AddViolation(token, indentationLevel++, diagnosticRecords, ref onNewLine);

0 commit comments

Comments
 (0)