mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Package downloading now mostly working
This commit is contained in:
@@ -153,7 +153,8 @@ class W3DHub
|
||||
if response.status == 200
|
||||
hash = JSON.parse(response.body, symbolize_names: true)
|
||||
packages = hash[:packages].map { |pkg| Package.new(pkg) }
|
||||
packages.first if packages.size == 1
|
||||
return packages.first if packages.size == 1
|
||||
return packages
|
||||
else
|
||||
false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user