receive-pack: clean dead code from update_worktree()
commit38baae6cfe4ac3af60e127b9e7f9de04c47c4881
authorAnders Kaseorg <andersk@mit.edu>
Wed, 1 Dec 2021 22:15:45 +0000 (1 14:15 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Dec 2021 06:18:25 +0000 (1 22:18 -0800)
tree1332dbbcff637e08f089a40e349ff3f797391046
parent8bc1f39f411e06b940230dc84da5568dfafec922
receive-pack: clean dead code from update_worktree()

update_worktree() can only be called with a non-NULL worktree parameter,
because that’s the only case where we set do_update_worktree = 1.
worktree->path is always initialized to non-NULL.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c