fish_svn_prompt: Shorten a return

This commit is contained in:
Fabian Homborg 2019-07-15 17:46:41 +02:00
parent 2dcaf4f5c0
commit 56e122866c

View File

@ -97,10 +97,7 @@ function fish_svn_prompt --description "Prompt function for svn"
# make sure that this is a svn repo
set -l checkout_info (command svn info 2>/dev/null)
if [ $status -ne 0 ]
return
end
or return
# get the current revision number
printf '(%s%s%s' (set_color $__fish_svn_prompt_color_revision) (__fish_print_svn_rev) (set_color normal)