1
0
Fork 0
mirror of https://github.com/awesome-print/awesome_print synced 2023-03-27 23:22:34 -04:00

Rubocop inspector

This commit is contained in:
Bryan Hanks, PMP 2021-01-29 09:15:07 -06:00
parent d29f0f0af6
commit cbc666518d

View file

@ -151,7 +151,7 @@ module AwesomePrint
load dotfile if dotfile_readable?(dotfile) load dotfile if dotfile_readable?(dotfile)
end end
def dotfile_readable? dotfile def dotfile_readable?(dotfile)
if @@dotfile_readable.nil? || @@dotfile != dotfile if @@dotfile_readable.nil? || @@dotfile != dotfile
@@dotfile_readable = File.readable?(@@dotfile = dotfile) @@dotfile_readable = File.readable?(@@dotfile = dotfile)
end end
@ -165,7 +165,7 @@ module AwesomePrint
load_dotfile load_dotfile
merge_options!(AwesomePrint.defaults) if AwesomePrint.defaults.is_a?(Hash) merge_options!(AwesomePrint.defaults) if AwesomePrint.defaults.is_a?(Hash)
rescue => e rescue => e
$stderr.puts "Could not load '.aprc' from ENV['HOME']: #{e}" warn "Could not load '.aprc' from ENV['HOME']: #{e}"
end end
end end
end end