lib/coverband/utils/file_hasher.rb in coverband-6.0.2 vs lib/coverband/utils/file_hasher.rb in coverband-6.0.3.rc.1
- old
+ new
@@ -5,12 +5,12 @@
class FileHasher
@cache = {}
def self.hash_file(file, path_converter: AbsoluteFileConverter.instance)
@cache[file] ||= begin
- file = path_converter.convert(file)
- Digest::MD5.file(file).hexdigest if File.exist?(file)
- end
+ file = path_converter.convert(file)
+ Digest::MD5.file(file).hexdigest if File.exist?(file)
+ end
end
end
end
end