env_config: Tighten hash types some more

Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
Issy Long 2024-07-23 11:26:12 +01:00 committed by Issy Long
parent fdb661e2b9
commit 6ad0ebd5b4
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ module Homebrew
module Cmd module Cmd
class CleanupCmd < AbstractCommand class CleanupCmd < AbstractCommand
cmd_args do 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 description <<~EOS
Remove stale lock files and outdated downloads for all formulae and casks, Remove stale lock files and outdated downloads for all formulae and casks,
and remove old versions of installed formulae. If arguments are specified, and remove old versions of installed formulae. If arguments are specified,

View File

@ -477,7 +477,7 @@ module Homebrew
description: "A comma-separated list of hostnames and domain names excluded " \ 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.", "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) } sig { params(env: Symbol, hash: T::Hash[Symbol, T.untyped]).returns(String) }
def env_method_name(env, hash) def env_method_name(env, hash)