mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
+2
-2
@@ -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)
|
||||
}
|
||||
}()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user