diff --git a/src/org/SHS/Platforms.groovy b/src/org/SHS/Platforms.groovy index 3cedee7..d3a1154 100644 --- a/src/org/SHS/Platforms.groovy +++ b/src/org/SHS/Platforms.groovy @@ -26,7 +26,7 @@ class Platforms { def ok = true; def dn = key.toLowerCase() if (whiteList.size() > 0) { - for (l in whiteList) { + whiteList.each { l -> if (dn.indexOf(l) < 0) { ok = false; steps.print("${key} skip because of whiteList") @@ -34,7 +34,7 @@ class Platforms { } } } - for (l in blackList) { + blackList.each { l -> if (dn.indexOf(l) >= 0) { ok = false; steps.print("${key} skip because of blackList")