lib/contrast/utils/sha256_builder.rb in contrast-agent-4.2.0 vs lib/contrast/utils/sha256_builder.rb in contrast-agent-4.3.0

- old
+ new

@@ -27,11 +27,11 @@ end end # Generate a SHA256 hash of the combined source code of this Gem def sha256 path - return nil unless path - return nil unless File.exist?(path) && !File.directory?(path) + return unless path + return unless File.exist?(path) && !File.directory?(path) @sha256_cache[path] ||= Digest::SHA256.file(path).to_s end def build_from_spec spec