Skip to content

Commit

Permalink
Set dafault disable telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyu66 committed Feb 14, 2023
1 parent b39bcf2 commit b6e61b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ func (p *Profile) TelemetryEnabled() bool {
}

key := fmt.Sprintf("%s.%s", p.name, prop.TelemetryEnabled)
// Telemetry is disabled by default.
if !viper.IsSet(key) {
return true
return false
}
return viper.GetBool(key)
}
Expand Down

0 comments on commit b6e61b7

Please sign in to comment.