"vscode:/vscode.git/clone" did not exist on "d5e51aa9f0e354f1acb5f42c88890ff899ed832b"
Unverified Commit d104b7e9 authored by Alexander F. Rødseth's avatar Alexander F. Rødseth Committed by GitHub
Browse files

Fix go test./... issue: fmt.Println arg list ends with redundant newline (#705)

parent 9e2de1bd
......@@ -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)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment