lib/u3d/hub_modules_parser.rb in u3d-1.3.0 vs lib/u3d/hub_modules_parser.rb in u3d-1.3.1

- old
+ new

@@ -34,12 +34,12 @@ def load_modules(version, os: U3dCore::Helper.operating_system, offline: false) path = modules_path(version, os) # force download if no hub file present - download_modules(os: os) if !File.file?(path) && File.size(path).positive? && !offline + download_modules(os: os) if !Utils.file_exists_not_empty?(path) && !offline - unless File.file?(path) && File.size(path).positive? + unless Utils.file_exists_not_empty?(path) UI.verbose "No modules registered for UnityHub for version #{version}" # cached_versions.keys.map{|s| UnityVersionNumber.new(s)} # searching for closest version files = Dir.glob("#{default_modules_path}/*-#{os}-modules.json")