Skip to content

Commit

Permalink
Clean code up
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhitfield3 committed Apr 16, 2024
1 parent 35f0849 commit aaf8de5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/global_telemetry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const {version} = require('../package.json')
const root = path.resolve(__dirname, '../package.json')
const isDev = process.env.IS_DEV_ENVIRONMENT === 'true'
const isTelemetryDisabled = process.env.DISABLE_TELEMETRY === 'true'
const canSendTelemetry = !isTelemetryDisabled

function getToken() {
const config = new Config({root})
Expand Down Expand Up @@ -154,7 +153,7 @@ export function reportCmdNotFound(config: any) {

export async function sendTelemetry(currentTelemetry: any, rollbarCb?: () => void) {
// send telemetry to honeycomb and rollbar
if (!canSendTelemetry) {
if (isTelemetryDisabled) {
return
}

Expand Down

0 comments on commit aaf8de5

Please sign in to comment.