Skip to content

Commit

Permalink
Use empty method to check arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Ferrari committed Jan 11, 2016
1 parent 680d15c commit 64b2d53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/zone-master.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ zone "<%= @name %>" IN {
allow-transfer { none; };
<% end -%>
<% if @is_dynamic -%>
allow-update { <% if ![nil, '', :undef].include?(@allow_update) -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
-%><% if ![nil, '', :undef].include?(@allow_update_cidr) -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
allow-update { <% if !@allow_update.empty? -%>key <%= Array(@allow_update).join('.; key ') -%>.;<% end
-%><% if !@allow_update_cidr.empty? -%> <%= Array(@allow_update_cidr).join('; ') -%>;<% end -%> };
<% end -%>
allow-query { any; };
notify yes;
Expand Down

0 comments on commit 64b2d53

Please sign in to comment.