You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by bo...@apache.org on 2026/10/08 00:00:53 UTC

(grails-core) 06/09: style: name intentionally empty catch parameters ignored in grails-web-mvc

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

borinquenkid pushed a commit to branch 9.0.x-h7-improvement-phase3
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit d37d3e549e7c6a310ecfe59e341cd537c60aad55
Author: Walter Duque de Estrada <wb...@mac.com>
AuthorDate: Wed Oct 7 18:02:16 2026 -0500

    style: name intentionally empty catch parameters ignored in grails-web-mvc
    
    CodeNarc EmptyCatchBlock only accepts an empty catch block whose parameter is
    named ignored. Pure parameter renames, no behaviour change.
    
    Co-Authored-By: Claude Sonnet 5.5 <no...@anthropic.com>
---
 .../src/main/groovy/org/grails/web/errors/AuditorAwareLookup.groovy     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grails-web-mvc/src/main/groovy/org/grails/web/errors/AuditorAwareLookup.groovy b/grails-web-mvc/src/main/groovy/org/grails/web/errors/AuditorAwareLookup.groovy
index a1e585fbde..6de7f059c8 100644
--- a/grails-web-mvc/src/main/groovy/org/grails/web/errors/AuditorAwareLookup.groovy
+++ b/grails-web-mvc/src/main/groovy/org/grails/web/errors/AuditorAwareLookup.groovy
@@ -85,7 +85,7 @@ class AuditorAwareLookup {
                         bean = applicationContext.getBean(type)
                         getCurrentAuditor = type.getMethod('getCurrentAuditor')
                     }
-                    catch (BeansException noBean) {
+                    catch (BeansException ignored) {
                         // optional — no bean registered
                     }
                 }