Skip to content

Commit 2307170

Browse files
committed
Remove unnecessary unset of the local variable
1 parent 737ebec commit 2307170

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

gitprompt.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ function updatePrompt() {
499499
export GIT_UPSTREAM="${git_status_fields[2]}"
500500
if [[ -z "${__GIT_PROMPT_SHOW_UPSTREAM}" || "^" == "$GIT_UPSTREAM" ]]; then
501501
unset GIT_UPSTREAM
502-
unset GIT_FORMATTED_UPSTREAM
503502
else
504503
local GIT_FORMATTED_UPSTREAM="${GIT_PROMPT_UPSTREAM//_UPSTREAM_/\$GIT_UPSTREAM}"
505504
fi

0 commit comments

Comments
 (0)