Skip to content

Commit

Permalink
Removing unnecessary braces from variable name (PSAvoidUsingUnnecessa…
Browse files Browse the repository at this point in the history
…ryBracesInVariableNames)
  • Loading branch information
BenedekFarkas committed Jun 25, 2024
1 parent 59eb43c commit c22d1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/Get-ProcessId/Get-ProcessId.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Get-ProcessId
}
else
{
Get-CimInstance Win32_Process -Filter "name = '${Name}.exe'" |
Get-CimInstance Win32_Process -Filter "name = '$Name.exe'" |
ForEach-Object { @{ Id = $PSItem.Handle; CommandLine = $PSItem.CommandLine } }
})

Expand Down

0 comments on commit c22d1d2

Please sign in to comment.