Skip to content

Commit 321ba28

Browse files
committed
Fix bindings generation when no ficsit data exists
1 parent c33f38e commit 321ba28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: backend/logging/redaction.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ func redactPaths(attr slog.Attr) slog.Attr {
4848
}
4949

5050
func isGamePath(str string) bool {
51-
return ficsitcli.FicsitCLI.GetInstallation(str) != nil
51+
if ficsitcli.FicsitCLI != nil {
52+
return ficsitcli.FicsitCLI.GetInstallation(str) != nil
53+
}
54+
// if ficsitcli is not initialized, we can't know if it's a game path
55+
// so any code running before that should not log game paths
56+
return false
5257
}

0 commit comments

Comments
 (0)