mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-12-13 08:34:19 +00:00
unneccessary check for empty string
This commit is contained in:
@@ -246,9 +246,7 @@ nvm_detect_profile() {
|
||||
USER_SHELL="$SHELL"
|
||||
fi
|
||||
|
||||
if [ -n "$SHELL" ]; then
|
||||
USER_SHELL_NAME="${USER_SHELL##*/}"
|
||||
fi
|
||||
USER_SHELL_NAME="${USER_SHELL##*/}"
|
||||
|
||||
# First try to find the config file based on the shell name
|
||||
if [ -n "${USER_SHELL_NAME}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user