Skip to content

Commit d342ffc

Browse files
committed
(CONT-811) removing redundant check for HOME env variable as this is accounted for with the introduction of Dir.home
1 parent 34657c6 commit d342ffc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet-lint/optparser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def self.build(args = [])
143143

144144
unless args.include?('--no-config')
145145
opt_parser.load('/etc/puppet-lint.rc')
146-
if ENV.key?('HOME') && File.readable?(Dir.home)
146+
if File.readable?(Dir.home)
147147
home_dotfile_path = File.expand_path('~/.puppet-lint.rc')
148148
opt_parser.load(home_dotfile_path) if File.readable?(home_dotfile_path)
149149
end

0 commit comments

Comments
 (0)