Skip to content

Commit

Permalink
Fix shadwowed variable name.
Browse files Browse the repository at this point in the history
Groovy does not allow a closure variable to shadow another one.

Co-authored-by: Dharini Dutia <[email protected]>
  • Loading branch information
nuclearsandwich and quarkytale authored Jul 5, 2023
1 parent 221e382 commit 1505d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/ongoing_operations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ The following Groovy script is a good starting point for various actions:
BATCH_SIZE = 100
count = 0
for (job in Jenkins.get().getItems({job -> starts_with_any_prefix(job.name)}))
for (job in Jenkins.get().getItems({j -> starts_with_any_prefix(j.name)}))
{
if (count >= BATCH_SIZE)
{
Expand Down

0 comments on commit 1505d62

Please sign in to comment.