fixed linting errors
parent
dd546e426b
commit
29df3e2b77
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue