lib/utils: Code quality improvement (#103)

Fixed by suggestion 
https://github.com/ohmybash/oh-my-bash/issues/68#issuecomment-523238232

Bug: https://github.com/ohmybash/oh-my-bash/issues/68
This commit is contained in:
Kreyren
2020-02-17 03:46:57 +01:00
committed by GitHub
parent 7a3a7b01d6
commit 5708cfd704

View File

@@ -158,10 +158,7 @@ is_confirmed() {
# fi
#
type_exists() {
if [ "$(type -P "$1")" ]; then
return 0
fi
return 1
[ "$(type -P "$1")" ]
}
#