Skip to content

Commit 53eb5f9

Browse files
authored
Fixed whitespace issues causing codeNarc errlrs
1 parent d23e7ea commit 53eb5f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

grails-web-url-mappings/src/main/groovy/grails/web/mapping/ResponseRedirector.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,13 @@ class ResponseRedirector {
9393

9494
boolean permanent = getBooleanArgument(ARGUMENT_PERMANENT, arguments)
9595
boolean moved = getBooleanArgument(ARGUMENT_MOVED, arguments, true)
96-
97-
9896
boolean absolute = getBooleanArgument(ARGUMENT_ABSOLUTE, arguments, true)
9997

10098
final Map namedParameters = new LinkedHashMap<>(arguments)
10199
// we generate a relative link with no context path so that the absolute can be calculated by combining the serverBaseURL
102100
// which includes the contextPath
103101
// @Issue('11673')
104-
if(absolute) namedParameters.put(LinkGenerator.ATTRIBUTE_CONTEXT_PATH, BLANK)
102+
if (absolute) namedParameters.put(LinkGenerator.ATTRIBUTE_CONTEXT_PATH, BLANK)
105103

106104
// If the request parameters contain "keepParamsWhenRedirect = true", then we add the original params. The
107105
// new attribute can be used from UrlMappings to redirect from old URLs to new ones while keeping the params

0 commit comments

Comments
 (0)