parse_electron_builder_appcast: fix case for missing data path (#76675)

This commit is contained in:
Vítor Galvão
2020-02-05 23:06:09 +01:00
committed by GitHub
parent a039a9501a
commit b85529c696
+1 -1
View File
@@ -22,7 +22,7 @@ def parse(app_path)
bucket = data["bucket"]
channel = data["channel"]
region = data["region"]
path = data["path"].sub(%r{^/(.*)/$}, '\1')
path = data["path"].sub(%r{^/(.*)/$}, '\1') rescue nil
return "https://#{bucket}.s3.amazon-aws.yml/#{channel}/latest-mac.yml" if channel
return "https://s3-#{region}.amazonaws.com/#{bucket}/#{path}/latest-mac.yml" if region