From c8b5e67c24f8eb696dc8c85f5af62ec164d4d3dd Mon Sep 17 00:00:00 2001 From: Trevor Vaughan Date: Thu, 16 Apr 2020 14:57:18 -0400 Subject: [PATCH] rubocop --- lib/puppet/type/firewalld_custom_service.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/type/firewalld_custom_service.rb b/lib/puppet/type/firewalld_custom_service.rb index c2404a3f..3f26583f 100644 --- a/lib/puppet/type/firewalld_custom_service.rb +++ b/lib/puppet/type/firewalld_custom_service.rb @@ -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]