Skip to content

Commit 9974d55

Browse files
committed
fix: disable telemetry for dev build
1 parent c87a7c5 commit 9974d55

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/telemetry/telemetry.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ func (t *Telemetry) Init() error {
5353
}
5454

5555
// if we are in non TTY mode - disable
56-
// if !t.factory.IOStreams.CanPrompt() {
57-
// t.enabled = false
58-
// return nil
59-
// }
56+
if !t.factory.IOStreams.CanPrompt() {
57+
t.enabled = false
58+
return nil
59+
}
6060

6161
// We have developer build - disable
62-
// if build.IsDevBuild() {
63-
// t.enabled = false
64-
// return nil
65-
// }
62+
if build.IsDevBuild() {
63+
t.enabled = false
64+
return nil
65+
}
6666

6767
cfg, err := t.factory.Config.Load()
6868
if err != nil {

0 commit comments

Comments
 (0)