Skip to content

Commit

Permalink
Keep 1 as default for maxRetries [ci slik]
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Nov 21, 2024
1 parent a6f6d99 commit 37b249e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class TaskConfig extends LazyMap implements Cloneable {

int getMaxRetries() {
def result = get('maxRetries')
result != null ? result as int : 1
result ? result as int : 1
}

int getMaxErrors() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class TaskConfigTest extends Specification {
where:
value | expected
null | 1
0 | 0
0 | 1
1 | 1
'3' | 3
10 | 10
Expand Down

0 comments on commit 37b249e

Please sign in to comment.