[shellcheck] remove unnecessary overrides

Jordan Harband 2019-02-24 23:04:13 -08:00
parent 924a175bd8
commit e0d87528f3
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 0 additions and 3 deletions

3
nvm.sh
View File

@ -21,7 +21,6 @@ nvm_echo() {
} }
nvm_cd() { nvm_cd() {
# shellcheck disable=SC1001,SC2164
\cd "$@" \cd "$@"
} }
@ -43,7 +42,6 @@ nvm_has_non_aliased() {
nvm_is_alias() { nvm_is_alias() {
# this is intentionally not "command alias" so it works in zsh. # this is intentionally not "command alias" so it works in zsh.
# shellcheck disable=SC1001
\alias "${1-}" >/dev/null 2>&1 \alias "${1-}" >/dev/null 2>&1
} }
@ -260,7 +258,6 @@ if [ -z "${NVM_DIR-}" ]; then
# shellcheck disable=SC2169 # shellcheck disable=SC2169
NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}" NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
fi fi
# shellcheck disable=SC1001
NVM_DIR="$(nvm_cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" >/dev/null && \pwd)" NVM_DIR="$(nvm_cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" >/dev/null && \pwd)"
export NVM_DIR export NVM_DIR
else else