Skip to content

Commit 28dffc6

Browse files
authored
Merge pull request #1452 from snyk/chore/disable_usage_reporting_in_dev
Disable usage reporting for non release builds
2 parents dd64918 + 33d51a5 commit 28dffc6

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)