Skip to content

Commit

Permalink
Merge pull request #204347 from Homebrew/typecheck
Browse files Browse the repository at this point in the history
cmd/aspell-dictionaries: fix typecheck failure
  • Loading branch information
chenrui333 authored Jan 15, 2025
2 parents a6ecd82 + 4be45d5 commit 781916d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/aspell-dictionaries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ def run
dictionary_mirror = "https://ftpmirror.gnu.org/aspell/dict"
languages = {}

index_output, = Utils::Curl.curl_output("#{dictionary_url}/0index.html")
index_output = Utils::Curl.curl_output("#{dictionary_url}/0index.html").stdout
index_output.split("<tr><td>").each do |line|
next unless line.start_with?("<a ")

_, language, _, path, = line.split('"')
language.tr!("-", "_")
languages[language] = path
language&.tr!("-", "_")
languages[language] = path if language && path
end

resources = languages.map do |language, path|
Expand Down

0 comments on commit 781916d

Please sign in to comment.