From 2f26a33201d04262f8f4b5538fba3b6f883bae3c Mon Sep 17 00:00:00 2001 From: Peter Goldstein Date: Wed, 5 Apr 2023 15:22:00 -0700 Subject: [PATCH] Fix lint. --- lib/wicked_pdf.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wicked_pdf.rb b/lib/wicked_pdf.rb index ae9a63ee..fc7a3811 100644 --- a/lib/wicked_pdf.rb +++ b/lib/wicked_pdf.rb @@ -46,8 +46,7 @@ def pdf_from_string(string, options = {}) string_file.close if string_file end - # rubocop:disable Metrics/CyclomaticComplexity - def pdf_from_url(url, options = {}) + def pdf_from_url(url, options = {}) # rubocop:disable Metrics/CyclomaticComplexity # merge in global config options options.merge!(WickedPdf.config) { |_key, option, _config| option } generated_pdf_file = WickedPdf::Tempfile.new('wicked_pdf_generated_file.pdf', options[:temp_path])