Skip to content

Commit

Permalink
Fix go test./... issue: fmt.Println arg list ends with redundant newl…
Browse files Browse the repository at this point in the history
…ine (#705)
  • Loading branch information
xyproto committed Oct 5, 2023
1 parent 9e2de1b commit d104b7e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,27 +687,27 @@ 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)
}
case "modelfile":
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)
}
Expand Down

0 comments on commit d104b7e

Please sign in to comment.