This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-aggregator.git
The following commit(s) were added to refs/heads/master by this push: new 867a6b5 generate-project-badges: access collection size in the right way (#10) 867a6b5 is described below commit 867a6b553a83fb6e89d6e5e3ddd8c5a5de2f525c Author: Robert Munteanu <romb...@apache.org> AuthorDate: Fri Sep 1 10:13:06 2023 +0200 generate-project-badges: access collection size in the right way (#10) Use size() instead of size for the collection; this might've worked by accident but is not guaranteed. --- generate-project-badges.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generate-project-badges.groovy b/generate-project-badges.groovy index e36c0c7..27cff3d 100755 --- a/generate-project-badges.groovy +++ b/generate-project-badges.groovy @@ -72,7 +72,7 @@ def lines = readme.readLines() println "Updating ${readme}" lines[3..(lines.size() - 1)].join('\n') readme.newWriter().withWriter { w -> - w << "[![Apache Sling](https://sling.apache.org/res/logos/sling.png)](https://sling.apache.org)\n\n${badges.join('')}\n${lines[3..(lines.size - 1)].join('\n')}\n" + w << "[![Apache Sling](https://sling.apache.org/res/logos/sling.png)](https://sling.apache.org)\n\n${badges.join('')}\n${lines[3..(lines.size() - 1)].join('\n')}\n" } println 'Update complete!'