Improve _yarn changes

Use `_default` instead of `_files` and don't unnecessarily wrap with `_arguments`
This commit is contained in:
Jordan Rastrick 2019-10-01 12:50:37 +10:00 committed by GitHub
parent 1000d2ea8b
commit 4add7f4dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -241,7 +241,7 @@ _yarn() {
run) run)
_arguments \ _arguments \
'1: :_yarn_scripts' \ '1: :_yarn_scripts' \
'*:: :_files' '*:: :_default'
;; ;;
tag) tag)
@ -269,8 +269,7 @@ _yarn() {
;; ;;
*) *)
_arguments \ _default
'*:: :_files'
;; ;;
esac esac
;; ;;