From 1451553188276117a574b2abe8957cb60ef7ced7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 23 Apr 2016 14:27:09 +0100 Subject: Ship analytics for Homebrew. For more information and opt-out instructions please read: https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Analytics.md#analytics--- Library/Homebrew/utils/analytics.rb | 1 - Library/Homebrew/utils/analytics.sh | 2 -- 2 files changed, 3 deletions(-) (limited to 'Library/Homebrew/utils') diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb index 44e14dd1d..caf2a15c1 100644 --- a/Library/Homebrew/utils/analytics.rb +++ b/Library/Homebrew/utils/analytics.rb @@ -8,7 +8,6 @@ def analytics_label end def report_analytics(type, metadata = {}) - return unless ENV["HOMEBREW_ANALYTICS"] return if ENV["HOMEBREW_NO_ANALYTICS"] args = %W[ diff --git a/Library/Homebrew/utils/analytics.sh b/Library/Homebrew/utils/analytics.sh index 20c59fc49..b0041a1d8 100644 --- a/Library/Homebrew/utils/analytics.sh +++ b/Library/Homebrew/utils/analytics.sh @@ -1,5 +1,4 @@ setup-analytics() { - [[ -z "$HOMEBREW_ANALYTICS" ]] && return [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return # User UUID file. Used for Homebrew user counting. Can be deleted and @@ -27,7 +26,6 @@ setup-analytics() { } report-analytics-screenview-command() { - [[ -z "$HOMEBREW_ANALYTICS" ]] && return [[ -n "$HOMEBREW_NO_ANALYTICS" ]] && return # Don't report non-official commands. -- cgit v1.2.3