lib/vin_exploder/cache.rb in vin_exploder-0.4.0 vs lib/vin_exploder/cache.rb in vin_exploder-0.4.1

- old
+ new

@@ -35,10 +35,10 @@ def fetch(vin) hash = read(vin) if block_given? if hash.nil? hash = yield - write(vin, hash) unless hash.empty? || (hash[:errors] && !hash[:errors].empty?) + cachewrite(vin, hash) unless hash.empty? || (hash[:errors] && !hash[:errors].empty?) end end hash end \ No newline at end of file