visualphoenix / jenkins-init-scripts

Jenkins Groovy Initialization Mixin Scripts
GNU Affero General Public License v3.0
37 stars 10 forks source link

Avoid double check #5

Closed jonatasemidio closed 8 years ago

jonatasemidio commented 8 years ago

Hi Dev!

I know that this is not so important, but in Groovy a null or empty list is false, so in your case is just to check the reverse of the list.

visualphoenix commented 8 years ago

Thank you so much for your generous contribution! I am not a groovy expert and welcome any patches to improve this code!