fix(ci): guard loop detection integer parsing
This commit is contained in:
parent
eaa2f7a7bf
commit
83a8b78a42
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user