mirror of
https://github.com/actions/checkout.git
synced 2025-03-28 11:00:05 +01:00
.
This commit is contained in:
parent
bdbd8b81c2
commit
cf03f7c7eb
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -9807,7 +9807,7 @@ class RetryHelper {
|
|||
this.maxAttempts = maxAttempts;
|
||||
this.minSeconds = Math.floor(minSeconds);
|
||||
this.maxSeconds = Math.floor(maxSeconds);
|
||||
if (this.minSeconds > this.maxAttempts) {
|
||||
if (this.minSeconds > this.maxSeconds) {
|
||||
throw new Error('min seconds should be less than or equal to max seconds');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ export class RetryHelper {
|
|||
this.maxAttempts = maxAttempts
|
||||
this.minSeconds = Math.floor(minSeconds)
|
||||
this.maxSeconds = Math.floor(maxSeconds)
|
||||
if (this.minSeconds > this.maxAttempts) {
|
||||
if (this.minSeconds > this.maxSeconds) {
|
||||
throw new Error('min seconds should be less than or equal to max seconds')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue