Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Ryan
2026-08-08 20:48:54 +08:00
committed by GitHub
parent 0e34301c92
commit 93ec3096f3
+3
View File
@@ -106,6 +106,9 @@ func retentionOr(ctx context.Context, key string) int {
}
return defaultLogRetentionDays
}
if v < 1 {
return defaultLogRetentionDays
}
return v
}