mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
use conditional assignment operator
Co-authored-by: Bo Anderson <mail@boanderson.me>
This commit is contained in:
parent
24d9524bbd
commit
0480411c6f
@ -600,7 +600,7 @@ class Tap
|
|||||||
safe_system "git", "-C", path, *args
|
safe_system "git", "-C", path, *args
|
||||||
git_repository.set_head_origin_auto
|
git_repository.set_head_origin_auto
|
||||||
|
|
||||||
current_upstream_head = git_repository.origin_branch_name if current_upstream_head.nil?
|
current_upstream_head ||= git_repository.origin_branch_name
|
||||||
|
|
||||||
new_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
|
return if new_upstream_head == current_upstream_head
|
||||||
|
Loading…
x
Reference in New Issue
Block a user