Skip to content

Commit

Permalink
Fix exception shown during Telemetry (#204)
Browse files Browse the repository at this point in the history
When #201 brought over the raw telemetry work from PowerShellForGitHub,
it erroneously left in a `Get-GitHubConfiguration` call which should
have been removed.
  • Loading branch information
HowardWolosky committed Aug 24, 2020
1 parent 1f6a272 commit 20d94bb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions StoreBroker/Telemetry.ps1
Expand Up @@ -184,10 +184,7 @@ function Get-BaseTelemetryEvent

if ($null -eq $script:SBBaseTelemetryEvent)
{
if (-not (Get-GitHubConfiguration -Name SuppressTelemetryReminder))
{
Write-Log -Message "Telemetry is currently enabled. It can be disabled by setting ""`$global:SBDisableTelemetry = `$true"". Refer to USAGE.md#telemetry for more information."
}
Write-Log -Message "Telemetry is currently enabled. It can be disabled by setting ""`$global:SBDisableTelemetry = `$true"". Refer to USAGE.md#telemetry for more information."

$username = Get-PiiSafeString -PlainText $env:USERNAME

Expand Down

0 comments on commit 20d94bb

Please sign in to comment.