File tree 1 file changed +4
-3
lines changed
v-next/hardhat/src/internal/cli/telemetry
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ export async function isTelemetryAllowed(): Promise<boolean> {
47
47
return false ;
48
48
}
49
49
50
- const consent = await getTelemetryConsent ( ) ;
51
-
52
50
// ATTENTION: only for testing
53
51
if ( process . env . HARDHAT_TEST_TELEMETRY_CONSENT_VALUE !== undefined ) {
54
52
return process . env . HARDHAT_TEST_TELEMETRY_CONSENT_VALUE === "true"
55
53
? true
56
54
: false ;
57
55
}
58
56
57
+ const consent = await getTelemetryConsent ( ) ;
58
+
59
59
return consent !== undefined ? consent : false ;
60
60
}
61
61
@@ -72,7 +72,8 @@ export function isTelemetryAllowedInEnvironment(): boolean {
72
72
( ! isCi ( ) &&
73
73
process . stdout . isTTY === true &&
74
74
process . env . HARDHAT_DISABLE_TELEMETRY_PROMPT !== "true" ) ||
75
- process . env . HARDHAT_TEST_INTERACTIVE_ENV === "true" // Used in tests to force telemetry execution
75
+ // ATTENTION: used in tests to force telemetry execution
76
+ process . env . HARDHAT_TEST_INTERACTIVE_ENV === "true"
76
77
) ;
77
78
}
78
79
You can’t perform that action at this time.
0 commit comments