mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
fix(ci): guard loop detection integer parsing
This commit is contained in:
@@ -55,7 +55,7 @@ type ResolvedLoopDetectionConfig = {
|
||||
};
|
||||
|
||||
function asPositiveInt(value: number | undefined, fallback: number): number {
|
||||
if (!Number.isInteger(value) || value <= 0) {
|
||||
if (typeof value !== "number" || !Number.isInteger(value) || value <= 0) {
|
||||
return fallback;
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user