fix(backup): guard nil context in checkPgDump preflight

This commit is contained in:
viettranx committed 2026-04-09 22:29:49 +07:00
1 parent 7d6e12e406
commit 92ee45fe06
1 file changed
+3
+3
View File
@@ -84,6 +84,9 @@ func RunPreflight(ctx context.Context, dsn, dataDir, workspace string) *Prefligh
}
func checkPgDump(ctx context.Context) PreflightCheck {
if ctx == nil {
ctx = context.Background()
}
path, err := exec.LookPath("pg_dump")
if err != nil {
return PreflightCheck{