lib/custom_facts/version.rb in facter-4.0.15 vs lib/custom_facts/version.rb in facter-4.0.16

- old
+ new

@@ -77,9 +77,9 @@ # @api private # # @return [String] the version -- for example: "1.6.14-6-gea42046" or nil if the VERSION # file does not exist. def self.read_version_file(path) - File.read(path).chomp if File.readable?(path) + Util::FileHelper.safe_read(path).chomp end private_class_method :read_version_file end