fixed linting errors

pull/1880/head
Gurkirat Singh 2021-05-04 23:39:46 +05:30
parent dd546e426b
commit 29df3e2b77
No known key found for this signature in database
GPG Key ID: CFD64E1DCB3DA835
1 changed files with 3 additions and 1 deletions

View File

@ -41,9 +41,11 @@ function git_restore_file() {
about 'restore the deleted file from HEAD'
group 'git'
[ -z $1 ] && return 1
[ -z "$1" ] && return 1
COMMIT=$(git rev-list -n 1 HEAD -- "$1")
# shellcheck disable=SC2086
git checkout $COMMIT^ -- "$1"
}