From 69cf1df56fdf02d2bee8120a8a8446c94e91d2cd Mon Sep 17 00:00:00 2001 From: Issy Long Date: Sun, 30 Jun 2024 19:23:26 +0100 Subject: [PATCH] dev-cmd/livecheck: Bump to Sorbet `typed: strict` --- Library/Homebrew/dev-cmd/livecheck.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/livecheck.rb b/Library/Homebrew/dev-cmd/livecheck.rb index 017f1a9d29..b2ffcbdb16 100644 --- a/Library/Homebrew/dev-cmd/livecheck.rb +++ b/Library/Homebrew/dev-cmd/livecheck.rb @@ -1,4 +1,4 @@ -# typed: true +# typed: strict # frozen_string_literal: true require "abstract_command" @@ -113,8 +113,9 @@ module Homebrew private + sig { returns(String) } def watchlist_path - @watchlist_path ||= File.expand_path(Homebrew::EnvConfig.livecheck_watchlist) + @watchlist_path ||= T.let(File.expand_path(Homebrew::EnvConfig.livecheck_watchlist), T.nilable(String)) end end end