mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
revert type check
This commit is contained in:
parent
d80d94ab28
commit
16b51d2a43
@ -162,10 +162,10 @@ module Homebrew
|
||||
sig { params(value: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
|
||||
def run_at_load(value = nil)
|
||||
case T.unsafe(value)
|
||||
when nil, false
|
||||
when nil
|
||||
@run_at_load
|
||||
when true
|
||||
@run_at_load = @run_type == RUN_TYPE_INTERVAL
|
||||
when true, false
|
||||
@run_at_load = value
|
||||
else
|
||||
raise TypeError, "Service#run_at_load expects a Boolean"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user