Skip to content

Commit b08d7d6

Browse files
committed
chore: Remove export-trakt binary from tracking and fix unused parameter
1 parent 6a2ad4b commit b08d7d6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

export-trakt

-12.3 MB
Binary file not shown.

pkg/telemetry/integration.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package telemetry
33
import (
44
"context"
55
"fmt"
6+
"os"
67
"time"
78

89
"github.com/JohanDevl/Export_Trakt_4_Letterboxd/pkg/config"
@@ -62,8 +63,9 @@ func InitializeTelemetryFromConfig(appConfig *config.Config, version string) (*T
6263

6364
// getEnvOrDefault gets environment variable or returns default
6465
func getEnvOrDefault(key, defaultValue string) string {
65-
// In a real implementation, you'd use os.Getenv
66-
// For now, just return the default
66+
if value := os.Getenv(key); value != "" {
67+
return value
68+
}
6769
return defaultValue
6870
}
6971

0 commit comments

Comments
 (0)