completion: zsh: trivial simplification

>From upstream bash simplification:

  d9ee1e0617 (completion: simplify inner 'case' pattern in __gitcomp())

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Felipe Contreras 2020-10-27 20:07:07 -06:00 committed by Junio C Hamano
parent 2769e567d1
commit bbd7f45884

View File

@ -85,7 +85,7 @@ __gitcomp ()
fi
c="$c${4-}"
case $c in
--*=*|*.) ;;
--*=|*.) ;;
*) c="$c " ;;
esac
array+=("$c")