From 687f721eaa40859950820b37b9ad1fcd85b7da9f Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 26 Aug 2019 10:07:50 +0200 Subject: [PATCH] Update function alignment Signed-off-by: Sascha Grunert --- fish.go | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/fish.go b/fish.go index e6c6d84d66..166435c0d2 100644 --- a/fish.go +++ b/fish.go @@ -64,11 +64,7 @@ func (a *App) writeFishCompletionTemplate(w io.Writer) error { }) } -func (a *App) prepareFishCommands( - commands []Command, - allCommands *[]string, - previousCommands []string, -) []string { +func (a *App) prepareFishCommands(commands []Command, allCommands *[]string, previousCommands []string) []string { completions := []string{} for i := range commands { command := &commands[i] @@ -113,10 +109,7 @@ func (a *App) prepareFishCommands( return completions } -func (a *App) prepareFishFlags( - flags []Flag, - previousCommands []string, -) []string { +func (a *App) prepareFishFlags(flags []Flag, previousCommands []string) []string { completions := []string{} for _, f := range flags { flag, ok := f.(DocGenerationFlag) @@ -160,10 +153,7 @@ func (a *App) prepareFishFlags( return completions } -func fishAddFileFlag( - flag Flag, - completion *strings.Builder, -) { +func fishAddFileFlag(flag Flag, completion *strings.Builder) { switch f := flag.(type) { case GenericFlag: if f.TakesFile {