Skip to content

Commit 46cbf51

Browse files
committed
Revert bool condition check, $true on RHS
1 parent d700d70 commit 46cbf51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Start-EditorServices.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function Get-AvailablePort() {
217217
$portsInUse[$port] = 1
218218

219219
Log "Checking port: $port, attempts remaining $triesRemaining --------------------"
220-
if ($true -eq (Test-PortAvailability -PortNumber $port)) {
220+
if ((Test-PortAvailability -PortNumber $port) -eq $true) {
221221
Log "Port: $port is available"
222222
return $port
223223
}

0 commit comments

Comments
 (0)