From d104b7e99772e02da46d55ec9d8d2df724b81112 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=2E=20R=C3=B8dseth?= <52813+xyproto@users.noreply.github.com> Date: Thu, 5 Oct 2023 17:11:04 +0200 Subject: [PATCH] Fix go test./... issue: fmt.Println arg list ends with redundant newline (#705) --- cmd/cmd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index f2431ae5..613a9c59 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -687,7 +687,7 @@ func generateInteractive(cmd *cobra.Command, model string) error { switch args[1] { case "license": if resp.License == "" { - fmt.Println("No license was specified for this model.\n") + fmt.Print("No license was specified for this model.\n\n") } else { fmt.Println(resp.License) } @@ -695,19 +695,19 @@ func generateInteractive(cmd *cobra.Command, model string) error { fmt.Println(resp.Modelfile) case "parameters": if resp.Parameters == "" { - fmt.Println("No parameters were specified for this model.\n") + fmt.Print("No parameters were specified for this model.\n\n") } else { fmt.Println(resp.Parameters) } case "system": if resp.System == "" { - fmt.Println("No system prompt was specified for this model.\n") + fmt.Print("No system prompt was specified for this model.\n\n") } else { fmt.Println(resp.System) } case "template": if resp.Template == "" { - fmt.Println("No prompt template was specified for this model.\n") + fmt.Print("No prompt template was specified for this model.\n\n") } else { fmt.Println(resp.Template) }