Skip to content

Commit e112972

Browse files
committed
HistorySize.TableString(): generate "no problems" message here
1 parent 0985cb9 commit e112972

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sizes/output.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ func (s *section) Emit(t *table, buf io.Writer, indent int) {
107107
}
108108

109109
if linesBuf.Len() == 0 {
110-
if indent == -1 {
111-
fmt.Fprintln(buf, "No problems above the current threshold were found")
112-
}
113110
return
114111
}
115112

@@ -330,7 +327,7 @@ func (s HistorySize) TableString(threshold Threshold, nameStyle NameStyle) strin
330327
t.contents.Emit(&t, buf, -1)
331328

332329
if buf.Len() == 0 {
333-
return ""
330+
return "No problems above the current threshold were found\n"
334331
}
335332

336333
return t.generateHeader() + buf.String() + t.footnotes.String()

0 commit comments

Comments
 (0)