Skip to content

Commit

Permalink
Fix bindings generation when no ficsit data exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mircearoata committed Feb 24, 2024
1 parent c33f38e commit 321ba28
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/logging/redaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ func redactPaths(attr slog.Attr) slog.Attr {
}

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

0 comments on commit 321ba28

Please sign in to comment.