aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:33:10 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-12-01 02:33:10 +1300
commit59cdb7f73046054e779723dd6ca185ac2615081d (patch)
tree792a0ab5651298431f6a3986fdad4ee0235d9829
parentRemove redundant error code in short circuits (diff)
downloaddotfiles-59cdb7f73046054e779723dd6ca185ac2615081d.tar.gz
dotfiles-59cdb7f73046054e779723dd6ca185ac2615081d.zip
Remove unneeded empty result short circuit
-rw-r--r--bash/bash_completion.d/ud.bash3
1 files changed, 0 insertions, 3 deletions
diff --git a/bash/bash_completion.d/ud.bash b/bash/bash_completion.d/ud.bash
index 5170eb57..2311ae3c 100644
--- a/bash/bash_completion.d/ud.bash
+++ b/bash/bash_completion.d/ud.bash
@@ -29,9 +29,6 @@ _ud() {
dirnames=("${COMP_WORDS[COMP_CWORD]}"*/)
dirnames=("${dirnames[@]%/}")
- # Bail if no results to prevent empty output
- ((${#dirnames[@]})) || exit 1
-
# Print results null-delimited
printf '%s\0' "${dirnames[@]}"
)