Skip to content

Commit 1b5963a

Browse files
committed
PR comments resolved, replacing }else with } else
1 parent 11d06ef commit 1b5963a

11 files changed

+14
-14
lines changed

templates/mod/_allow.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
Deny from all
33
<% if $allow_from and !$allow_from.empty { -%>
44
Allow from <%= Array($allow_from).join(" ") %>
5-
<% }else { -%>
5+
<% } else { -%>
66
Allow from <%= Array($allow_defaults).join(" ") %>
77
<% } -%>

templates/mod/_require.epp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% $_requires = if $requires { %>$requires<% }else {%>$requires_defaults<%} %>
1+
<% $_requires = if $requires { %>$requires<% } else {%>$requires_defaults<%} %>
22
<% if type($_requires, 'generalized') == String { %>
33
<%- if !($_requires.downcase in ['', 'unmanaged']) { -%>
44
Require <%= $_requires %>
@@ -13,7 +13,7 @@
1313
<%- $enforce_open = " <${enforce_str}" -%>
1414
<%- $enforce_close = " </${enforce_str}" -%>
1515
<%- $indentation = ' ' -%>
16-
<%- }else { -%>
16+
<%- } else { -%>
1717
<%- if $_requires['enforce'] { -%>
1818
<%- scope.function_warning(["Class #{@title}: Require can only be overwritten with all, none or any."]) -%>
1919
<%- } -%>
@@ -27,7 +27,7 @@
2727
<%# %> <%= $indentation -%>Require <%= $req %>
2828
<%- } -%>
2929
<%# %><%= $enforce_close -%>
30-
<%- }else { -%>
30+
<%- } else { -%>
3131
<%- scope.function_warning(["Class #{@title}: Require hash must have a key named \"requires\" with array value"]) -%>
3232
<%- } -%>
3333
<% } -%>

templates/mod/geoip.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GeoIPEnable <%= apache::bool2httpd($enable) %>
55
<%- Array($db_file).each |$file| { -%>
66
GeoIPDBFile <%= $file %> <%= $flag %>
77
<%- } -%>
8-
<%- }else { -%>
8+
<%- } else { -%>
99
GeoIPDBFile <%= $db_file %> <%= $flag %>
1010
<%- } -%>
1111
<%- } -%>

templates/mod/negotiation.conf.epp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<% if String(type($language_priority, 'generalized')).index('Array') == 0 { -%>
22
<%- $language_priority_updated = $language_priority.join(' ') -%>
3-
<% }else { -%>
3+
<% } else { -%>
44
<%- $language_priority_updated = $language_priority -%>
55
<% } -%>
66
<% if String(type($force_language_priority, 'generalized')).index('Array') == 0 { -%>
77
<%- $force_language_priority_updated = $force_language_priority.join(' ') -%>
8-
<% }else { -%>
8+
<% } else { -%>
99
<%- $force_language_priority_updated = $force_language_priority -%>
1010
<% } -%>
1111
LanguagePriority <%= $language_priority_updated %>

templates/mod/nss.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ AddType application/x-pkcs7-crl .crl
3838
# terminal dialog) has to provide the pass phrase on stdout.
3939
<% if $passwd_file { -%>
4040
NSSPassPhraseDialog "file:<%= $passwd_file %>"
41-
<% }else { -%>
41+
<% } else { -%>
4242
NSSPassPhraseDialog builtin
4343
<% } -%>
4444

templates/mod/pagespeed.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ ModPagespeedMessageBufferSize <%= $message_buffer_size %>
8080

8181
<% if String(type($additional_configuration, 'generalized')).index('Array') == 0 { -%>
8282
<%= $additional_configuration.join("\n") %>
83-
<% }else { -%>
83+
<% } else { -%>
8484
<% $additional_configuration.each |$key, $value| { -%>
8585
<%= $key %> <%= $value %>
8686
<% } -%>

templates/mod/proxy.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<Proxy *>
1313
<%- if String(type($allow_from, 'generalized')).index('Array') == 0 { -%>
1414
Require ip <%= $allow_from.join(" ") %>
15-
<%- }else { -%>
15+
<%- } else { -%>
1616
Require ip <%= $allow_from %>
1717
<%- } -%>
1818
</Proxy>

templates/mod/reqtimeout.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% if type($timeouts, 'generalized') == String { -%>
22
RequestReadTimeout <%= $timeouts -%>
3-
<% }else { -%>
3+
<% } else { -%>
44
<%- $timeouts.each |$timeout| { -%>
55
RequestReadTimeout <%= $timeout %>
66
<%- } -%>

templates/mod/security.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
SecTmpDir /var/lib/mod_security
6767
SecDataDir /var/lib/mod_security
6868
SecUploadDir /var/lib/mod_security
69-
<% }else { -%>
69+
<% } else { -%>
7070
SecDebugLog <%= $logroot %>/modsec_debug.log
7171
SecAuditLog <%= $logroot %>/modsec_audit.log
7272
SecTmpDir /var/lib/mod_security

templates/mod/security_crs.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ SecRule &TX:REAL_IP "@eq 0" \
434434
setvar:tx.real_ip=%{remote_addr}, \
435435
nolog, \
436436
pass"
437-
<% }else { -%>
437+
<% } else { -%>
438438
# ------------------------------------------------------------------------
439439
# OWASP ModSecurity Core Rule Set ver.3.3.2
440440
# Copyright (c) 2006-2020 Trustwave and contributors. All rights reserved.

templates/mod/ssl.conf.epp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<%- $ssl_cipher.map |$protocol, $cipher| { -%>
3838
SSLCipherSuite <%= $protocol %> <%= $cipher %>
3939
<%- } -%>
40-
<%- }else { -%>
40+
<%- } else { -%>
4141
SSLCipherSuite <%= $ssl_cipher %>
4242
<%- } -%>
4343
<% if !($ssl_protocol.empty) { -%>

0 commit comments

Comments
 (0)