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

- old
+ new

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