chore: Disable usage reporting for non release builds

Will prevent us to send telemetry while working on driftctl
main
Elie 2022-03-30 17:09:05 +02:00
parent dd64918ec7
commit 33d51a5ab4
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 1 additions and 1 deletions

View File

@ -20,5 +20,5 @@ func (b Build) IsRelease() bool {
}
func (b Build) IsUsageReportingEnabled() bool {
return enableUsageReporting == "true"
return b.IsRelease() && enableUsageReporting == "true"
}