From adb12b08c5c94dd0e44a99c6fc14d4e1a01bd5a7 Mon Sep 17 00:00:00 2001 From: Vadym Chepkov Date: Sun, 14 Jul 2024 09:43:35 -0400 Subject: [PATCH] remove superfluous empty lines --- templates/my.cnf.epp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/my.cnf.epp b/templates/my.cnf.epp index 7371164c3..529b77000 100644 --- a/templates/my.cnf.epp +++ b/templates/my.cnf.epp @@ -7,7 +7,7 @@ <%- if ($vi[0] == 'ssl-disable') or ($vi[0] =~ /^ssl/ and $v[1]['ssl-disable'] == true) or ($vi[0] =~ /^ssl-/ and $v[1]['ssl'] == false) { -%> <%- next -%> <%- } elsif $vi[1] == true or $vi[1] == '' { -%> -<%= $vi[0] -%> +<%= $vi[0] %> <%- } elsif type($vi[1]) =~ Type[Array] { -%> <%- $vi[1].each |$vii| { -%> <%-$base = $vi[0]-%> @@ -15,11 +15,12 @@ <%- } -%> <%- } elsif !($vi[1] ==nil or $vi[1]=='' or $vi[1]==undef) { -%> <%-$base = $vi[0]-%> -<%= $base %> = <%= $vi[1] -%> -<% } %> -<% } %> -<% } %> -<% } %> +<%= $base %> = <%= $vi[1] %> +<% } -%> +<% } -%> +<% } -%> +<%# Empty line between sections %> +<% } -%> <% if $includedir and $includedir != '' { -%> !includedir <%= $includedir %> <% } -%>