Skip to content

Commit 785cb3f

Browse files
rjmholtbergmeister
andauthored
Apply suggestions from code review
Co-Authored-By: bergmeister <c.bergmeister@gmail.com>
1 parent f8e6114 commit 785cb3f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rules/AvoidAlias.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
137137
return CheckForImplicitGetAliasing(commandName, cmdAst, fileName);
138138
}));
139139
}
140-
foreach(var task in tasks)
140+
foreach(Task<DiagnosticRecord> task in tasks)
141141
{
142-
var diagnosticRecordResult = task.Result;
142+
DiagnosticRecord diagnosticRecordResult = task.Result;
143143
if (diagnosticRecordResult != null)
144144
{
145145
yield return task.Result;
@@ -156,7 +156,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
156156
/// <returns></returns>
157157
private DiagnosticRecord CheckForImplicitGetAliasing(string commandName, CommandAst commandAst, string fileName)
158158
{
159-
var isNativeCommand = Helper.Instance.GetCommandInfo(commandName, CommandTypes.Application | CommandTypes.ExternalScript) != null;
159+
bool isNativeCommand = Helper.Instance.GetCommandInfo(commandName, CommandTypes.Application | CommandTypes.ExternalScript) != null;
160160
if (!isNativeCommand)
161161
{
162162
var commdNameWithGetPrefix = $"Get-{commandName}";
@@ -293,4 +293,4 @@ public string GetSourceName()
293293
return string.Format(CultureInfo.CurrentCulture, Strings.SourceName);
294294
}
295295
}
296-
}
296+
}

0 commit comments

Comments
 (0)