lib/vin_exploder/cache.rb in vin_exploder-0.4.6 vs lib/vin_exploder/cache.rb in vin_exploder-0.4.7

- old
+ new

@@ -35,9 +35,10 @@ def fetch(vin) hash = read(vin) if block_given? if hash.nil? hash = yield + # adapter should raise exception on error but in case it doesn't don't write to cache write(vin, hash) unless hash.empty? || (hash[:errors] && !hash[:errors].empty?) end end hash end \ No newline at end of file