Skip to content

Commit

Permalink
Wrong Array redundancy removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilnius Ramanauskas committed Jul 17, 2020
1 parent def84d7 commit 0d43a98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/conf.d/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ events {
<%- if @events_use -%>
use <%= @events_use %>;
<%- end -%>
<% if @debug_connection && Array(@debug_connection).size > 0 -%>
<%- Array(@debug_connection).each do |address| -%>
<% if @debug_connection -%>
<%- @debug_connection.each do |address| -%>
debug_connection <%= address %>;
<%- end -%>
<% end -%>
}

http {
<% if @http_raw_prepend -%>
<%- @http_raw_prepend.each do |line| -%>
<% if @http_raw_prepend && Array(@http_raw_prepend).size > 0 -%>
<%- Array(@http_raw_prepend).each do |line| -%>
<%= line %>
<%- end -%>
<% end -%>
Expand Down

0 comments on commit 0d43a98

Please sign in to comment.