add a T.must after fetching tap

This commit is contained in:
Kristján Oddsson 2025-05-27 16:55:00 +00:00
parent 7476f09672
commit 972414cec7

View File

@ -601,7 +601,7 @@ class Tap
safe_system "git", "-C", path, *args
git_repository.set_head_origin_auto
current_upstream_head ||= git_repository.origin_branch_name
current_upstream_head ||= T.must(git_repository.origin_branch_name)
new_upstream_head = T.must(git_repository.origin_branch_name)
return if new_upstream_head == current_upstream_head