lib/u3d/cache.rb in u3d-1.3.3 vs lib/u3d/cache.rb in u3d-1.3.4
- old
+ new
@@ -102,12 +102,12 @@
end
return need_update, data
end
def os_data_need_update?(data, os)
- data[os.id2name].nil?\
- || data[os.id2name]['lastupdate'].nil?\
- || (Time.now.to_i - data[os.id2name]['lastupdate'] > CACHE_LIFE)\
+ data[os.id2name].nil? \
+ || data[os.id2name]['lastupdate'].nil? \
+ || (Time.now.to_i - data[os.id2name]['lastupdate'] > CACHE_LIFE) \
|| (data[os.id2name]['versions'] || []).empty?
end
# Updates cache by retrieving versions with U3d::Downloader
def overwrite_cache(file_path, os, central_cache: false)