Skip to content

Commit

Permalink
cmd/aspell-dictionaries: fix curl_output type error
Browse files Browse the repository at this point in the history
We recently upgraded `utils/curl` to `typed: strict`, which required
us to rework how we handle the return type from some curl methods.
I overlooked tap commands, so this fixes a related Sorbet error.

Co-authored-by: Rui Chen <[email protected]>
  • Loading branch information
samford and chenrui333 committed Jan 15, 2025
1 parent a6ecd82 commit 4be45d5
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 4be45d5

Please sign in to comment.