Skip to content

Commit

Permalink
Adjust control flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tyhopp committed Jan 17, 2022
1 parent 4db9bd8 commit f60dbc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create-gatsby/src/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ export function isTrackingEnabled(): boolean {
enabled = true
store.set(`telemetry.enabled`, enabled)
}
trackingEnabled = enabled

if (trackingDisabledFromEnvVar) {
enabled = false
trackingEnabled = enabled
}

trackingEnabled = enabled

return enabled
}

Expand Down

0 comments on commit f60dbc9

Please sign in to comment.