diff --git a/commands/describe.go b/commands/describe.go index 8f667357..e9d57bd1 100644 --- a/commands/describe.go +++ b/commands/describe.go @@ -273,13 +273,13 @@ func printResources(w io.Writer, name string, data *types.FunctionResources, ver return } - fmt.Fprintf(w, name+":") - + header := name + ":" if data == nil { - fmt.Fprintln(w, "\t ") + fmt.Fprintln(w, header+"\t ") return } + fmt.Fprintln(w, header) fmt.Fprintln(w, "\t CPU: "+data.CPU) fmt.Fprintln(w, "\t Memory: "+data.Memory)