You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/09/25 05:30:07 UTC

[groovy] branch master updated: trivial refactor

This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 559d413  trivial refactor
559d413 is described below

commit 559d41309f999c2e6b4c41716fad2875254c49ed
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Sep 25 15:29:52 2019 +1000

    trivial refactor
---
 .../groovy/org/apache/groovy/groovysh/util/PackageHelperImpl.groovy   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/PackageHelperImpl.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/PackageHelperImpl.groovy
index 703b097..0a39f45 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/PackageHelperImpl.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/util/PackageHelperImpl.groovy
@@ -263,8 +263,8 @@ Files.walkFileTree(fs.getPath('modules'),
                     ze.printStackTrace()
                 }
                 LOG.debug("Error opening zipfile : '${url.getFile()}',  ${ze.toString()}")
-            } catch (FileNotFoundException | NoSuchFileException fnfe) {
-                LOG.debug("Error opening file : '${url.getFile()}',  ${fnfe.toString()}")
+            } catch (FileNotFoundException | NoSuchFileException ex) {
+                LOG.debug("Error opening file : '${url.getFile()}',  ${ex.toString()}")
             }
         }
         return []