From c3af0c31efbc23472a103536280a4d839555e198 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Dec 2018 02:32:30 +1300 Subject: Remove redundant error code in short circuits --- bash/bash_completion.d/mysql.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bash/bash_completion.d/mysql.bash') diff --git a/bash/bash_completion.d/mysql.bash b/bash/bash_completion.d/mysql.bash index 413f3386..3ff97090 100644 --- a/bash/bash_completion.d/mysql.bash +++ b/bash/bash_completion.d/mysql.bash @@ -2,12 +2,12 @@ _mysql() { # Only makes sense for first argument - ((COMP_CWORD == 1)) || return 1 + ((COMP_CWORD == 1)) || return # Bail if directory doesn't exist local dirname dirname=$HOME/.mysql - [[ -d $dirname ]] || return 1 + [[ -d $dirname ]] || return # Return the names of the .cnf files sans prefix as completions local db -- cgit v1.2.3