fix: remove unnecessary newlines from the end of cli output (#9068)

`Infof` already adds a newline, so we don't need to as well!
This commit is contained in:
Kyle Carberry
2023-08-13 11:48:11 -05:00
committed by GitHub
parent 9a13814b46
commit 0d01d022f7
6 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -1030,7 +1030,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
defer wg.Done()
if ok, _ := inv.ParsedFlags().GetBool(varVerbose); ok {
cliui.Infof(inv.Stdout, "Shutting down provisioner daemon %d...\n", id)
cliui.Infof(inv.Stdout, "Shutting down provisioner daemon %d...", id)
}
err := shutdownWithTimeout(provisionerDaemon.Shutdown, 5*time.Second)
if err != nil {
@@ -1043,7 +1043,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
return
}
if ok, _ := inv.ParsedFlags().GetBool(varVerbose); ok {
cliui.Infof(inv.Stdout, "Gracefully shut down provisioner daemon %d\n", id)
cliui.Infof(inv.Stdout, "Gracefully shut down provisioner daemon %d", id)
}
}()
}