diff --git a/lib/rubocop/cop/performance/fixed_size.rb b/lib/rubocop/cop/performance/fixed_size.rb index 01959f2130..0eff8fcb48 100644 --- a/lib/rubocop/cop/performance/fixed_size.rb +++ b/lib/rubocop/cop/performance/fixed_size.rb @@ -78,13 +78,13 @@ def allowed_parent?(node) end def contains_splat?(node) - return unless node.array_type? + return false unless node.array_type? node.each_child_node(:splat).any? end def contains_double_splat?(node) - return unless node.hash_type? + return false unless node.hash_type? node.each_child_node(:kwsplat).any? end