unneccessary check for empty string

This commit is contained in:
Jim Heald 2020-08-08 18:38:42 -07:00
parent 9ffd330f59
commit 27432616ba

View File

@ -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