Skip to content

Commit 306eed9

Browse files
committed
Removing the unneeded selection of ssh-agent's PID
1 parent 687cce6 commit 306eed9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitUtils.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function Get-SshAgent() {
249249
} else {
250250
$agentPid = $Env:SSH_AGENT_PID
251251
if ($agentPid) {
252-
$sshAgentProcess = Get-Process | Where-Object { $_.Id -eq $agentPid -and $_.Name -eq 'ssh-agent' } | Select -ExpandProperty Id
252+
$sshAgentProcess = Get-Process | Where-Object { $_.Id -eq $agentPid -and $_.Name -eq 'ssh-agent' }
253253
if ($null -ne $sshAgentProcess) {
254254
return $agentPid
255255
} else {

0 commit comments

Comments
 (0)