Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-vaughan committed Apr 16, 2020
1 parent 217ab49 commit c8b5e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/type/firewalld_custom_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
port_regexp = Regexp.new('^\d+(-\d+)?$')
raise Puppet::ParseError, "Ports must match #{port_regexp}" unless port_regexp.match?(test_value)

invalid_ports = test_value.split('-').select{|x| (x == '0') || (x > '65535')}
raise Puppet::ParseError, %Q{Ports must be between 1-65535 instead of '#{invalid_ports.join("' ,'")}'} unless invalid_ports.empty?
invalid_ports = test_value.split('-').select { |x| (x == '0') || (x > '65535') }
raise Puppet::ParseError, %(Ports must be between 1-65535 instead of '#{invalid_ports.join("' ,'")}') unless invalid_ports.empty?
end

allowed_protocols = %w[tcp udp sctp dccp]
Expand Down

0 comments on commit c8b5e67

Please sign in to comment.