Skip to content

Commit f085311

Browse files
authored
Merge pull request #489 from jfrog/nehamjfrog-patch-1
Convert size property access within artifactCleanup.groovy to method
2 parents 51b9258 + 386467b commit f085311

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cleanup/artifactCleanup/artifactCleanup.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,16 +276,16 @@ private def getSkippedPaths(String[] repos) {
276276
// Simplify list to have only parent paths
277277
def paths = []
278278
for (path in pathsTmp.sort{ it }) {
279-
if (paths.size == 0 || ! path.startsWith(paths[-1])) {
279+
if (paths.size() == 0 || ! path.startsWith(paths[-1])) {
280280
if (log.isTraceEnabled()){
281281
log.trace "skip added for " + repoKey + ":" + path
282282
}
283283
paths.add(path)
284284
}
285285
}
286286

287-
if (paths.size > 0){
288-
skip[repoKey] = paths.toArray(new String[paths.size])
287+
if (paths.size() > 0){
288+
skip[repoKey] = paths.toArray(new String[paths.size()])
289289
}
290290
}
291291
def timeStop = new Date()

0 commit comments

Comments
 (0)