bake/modernize/frozen_string_literal.rb in bake-modernize-0.13.2 vs bake/modernize/frozen_string_literal.rb in bake-modernize-0.13.3
- old
+ new
@@ -35,10 +35,10 @@
options.each do |key, value|
output.push "# #{key}: #{value}"
end
- unless input.first.chomp.empty?
+ unless input.first&.chomp&.empty?
output.push "\n"
end
# Add the rest of the file:
output.push(*input)