diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index a0e0e44..77725fb 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -94,8 +94,7 @@ function Test-Network { try{ Invoke-RestMethod -Uri "https://api.github.com/zen" Write-Log "Connected !" "Green" - $ping = $true - return $ping + return $true } catch{ Start-Sleep 10