Skip to content

Commit

Permalink
env_config: Tighten hash types some more
Browse files Browse the repository at this point in the history
Co-authored-by: Bo Anderson <[email protected]>
  • Loading branch information
issyl0 and Bo98 committed Jul 24, 2024
1 parent fdb661e commit 6ad0ebd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/cleanup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Homebrew
module Cmd
class CleanupCmd < AbstractCommand
cmd_args do
days = Homebrew::EnvConfig::ENVS[:HOMEBREW_CLEANUP_MAX_AGE_DAYS][:default]
days = Homebrew::EnvConfig::ENVS[:HOMEBREW_CLEANUP_MAX_AGE_DAYS]&.dig(:default)
description <<~EOS
Remove stale lock files and outdated downloads for all formulae and casks,
and remove old versions of installed formulae. If arguments are specified,
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/env_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ module EnvConfig
description: "A comma-separated list of hostnames and domain names excluded " \
"from proxying by `curl`(1), `git`(1) and `svn`(1) when downloading through Homebrew.",
},
}.freeze, T::Hash[Symbol, T.untyped])
}.freeze, T::Hash[Symbol, T::Hash[Symbol, T.untyped]])

sig { params(env: Symbol, hash: T::Hash[Symbol, T.untyped]).returns(String) }
def env_method_name(env, hash)
Expand Down

0 comments on commit 6ad0ebd

Please sign in to comment.