From 4b9424eb20106a5414d6bfeb3b2d85891f5ad3ef Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 24 Mar 2017 17:28:14 +0100 Subject: [PATCH] type: Minor reformatting Empty lines after `if` and `if begin`. --- share/functions/type.fish | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/share/functions/type.fish b/share/functions/type.fish index e89413023..2338bbabb 100644 --- a/share/functions/type.fish +++ b/share/functions/type.fish @@ -62,7 +62,6 @@ function type --description 'Print the type of a command' set -l found 0 if test $selection != files - if functions -q -- $i set res 0 set found 1 @@ -83,7 +82,6 @@ function type --description 'Print the type of a command' end if contains -- $i (builtin -n) - set res 0 set found 1 switch $mode @@ -97,7 +95,6 @@ function type --description 'Print the type of a command' continue end end - end set -l paths @@ -118,10 +115,8 @@ function type --description 'Print the type of a command' switch $mode case normal printf (_ '%s is %s\n') $i $path - case type echo (_ 'file') - case path echo $path end @@ -130,13 +125,10 @@ function type --description 'Print the type of a command' end end - if begin - test $found = 0 - and test $mode != quiet - end + if test $found = 0 + and test $mode != quiet printf (_ "%s: Could not find '%s'\n") type $i >&2 end - end return $res