From cbc666518d32840d1860076794d46fccfdbee0fa Mon Sep 17 00:00:00 2001 From: "Bryan Hanks, PMP" Date: Fri, 29 Jan 2021 09:15:07 -0600 Subject: [PATCH] Rubocop inspector --- lib/awesome_print/inspector.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awesome_print/inspector.rb b/lib/awesome_print/inspector.rb index c1a0e06..2eb5aad 100644 --- a/lib/awesome_print/inspector.rb +++ b/lib/awesome_print/inspector.rb @@ -151,7 +151,7 @@ module AwesomePrint load dotfile if dotfile_readable?(dotfile) end - def dotfile_readable? dotfile + def dotfile_readable?(dotfile) if @@dotfile_readable.nil? || @@dotfile != dotfile @@dotfile_readable = File.readable?(@@dotfile = dotfile) end @@ -165,7 +165,7 @@ module AwesomePrint load_dotfile merge_options!(AwesomePrint.defaults) if AwesomePrint.defaults.is_a?(Hash) rescue => e - $stderr.puts "Could not load '.aprc' from ENV['HOME']: #{e}" + warn "Could not load '.aprc' from ENV['HOME']: #{e}" end end end