utils/service: Bump to Sorbet typed: strict
This commit is contained in:
parent
4bfbc6a4ff
commit
e9cb08f431
@ -1,4 +1,4 @@
|
||||
# typed: true
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Utils
|
||||
@ -27,7 +27,7 @@ module Utils
|
||||
return @launchctl if defined? @launchctl
|
||||
return if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
||||
|
||||
@launchctl = which("launchctl")
|
||||
@launchctl = T.let(which("launchctl"), T.nilable(Pathname))
|
||||
end
|
||||
|
||||
# Path to systemctl binary.
|
||||
@ -36,7 +36,7 @@ module Utils
|
||||
return @systemctl if defined? @systemctl
|
||||
return if ENV["HOMEBREW_TEST_GENERIC_OS"]
|
||||
|
||||
@systemctl = which("systemctl")
|
||||
@systemctl = T.let(which("systemctl"), T.nilable(Pathname))
|
||||
end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user