Skip to content

Commit 33d51a5

Browse files
committed
chore: Disable usage reporting for non release builds
Will prevent us to send telemetry while working on driftctl
1 parent dd64918 commit 33d51a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ func (b Build) IsRelease() bool {
2020
}
2121

2222
func (b Build) IsUsageReportingEnabled() bool {
23-
return enableUsageReporting == "true"
23+
return b.IsRelease() && enableUsageReporting == "true"
2424
}

0 commit comments

Comments
 (0)