Skip to content

Commit ef9414e

Browse files
authored
Convert to String earlier in generate-windows-versions.rb
1 parent 80740b3 commit ef9414e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generate-windows-versions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# Validate all the URLs in the versions json
2222
def validate(versions, allowed_urls_regexps)
2323
versions.values.flat_map(&:values).each do |url|
24-
if allowed_urls_regexps.none? { |regexp| regexp.match? url.to_s }
24+
if allowed_urls_regexps.none? { |regexp| regexp.match? url }
2525
raise SecurityError, "Unexpected URL: #{url}"
2626
end
2727
end
@@ -112,7 +112,7 @@ def validate(versions, allowed_urls_regexps)
112112
raise "#{toolchain.empty? ? 'no' : 'multiple'} toolchains found for #{raw_version} #{raw_arch}: #{toolchain}"
113113
end
114114

115-
archs[raw_arch] = URI.join(base_url, toolchain.first[:href])
115+
archs[raw_arch] = URI.join(base_url, toolchain.first[:href]).to_s
116116
end
117117
end
118118

0 commit comments

Comments
 (0)