Skip to content

Commit 1781717

Browse files
Update Rules/AvoidAlias.cs
Co-Authored-By: Christoph Bergmeister [MVP] <[email protected]>
1 parent 8d91e1e commit 1781717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rules/AvoidAlias.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
136136
}
137137

138138
var commdNameWithGetPrefix = $"Get-{commandName}";
139-
var cmdletNameIfCommandWasMissingGetPrefix = Helper.Instance.GetCommandInfo($"Get-{commandName}");
139+
var cmdletNameIfCommandWasMissingGetPrefix = Helper.Instance.GetCommandInfo(commdNameWithGetPrefix);
140140
if (cmdletNameIfCommandWasMissingGetPrefix != null)
141141
{
142142
yield return new DiagnosticRecord(

0 commit comments

Comments
 (0)