Skip to content

Commit 2c88cd8

Browse files
committed
HistorySize.contents(): make method private
1 parent 6debdd6 commit 2c88cd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sizes/output.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ type table struct {
346346
}
347347

348348
func (s HistorySize) TableString(threshold Threshold, nameStyle NameStyle) string {
349-
contents := s.Contents()
349+
contents := s.contents()
350350
t := table{
351351
threshold: threshold,
352352
nameStyle: nameStyle,
@@ -423,14 +423,14 @@ func (t *table) formatRow(
423423
}
424424

425425
func (s HistorySize) JSON(threshold Threshold, nameStyle NameStyle) ([]byte, error) {
426-
contents := s.Contents()
426+
contents := s.contents()
427427
items := make(map[string]*item)
428428
contents.CollectItems(items)
429429
j, err := json.MarshalIndent(items, "", " ")
430430
return j, err
431431
}
432432

433-
func (s HistorySize) Contents() tableContents {
433+
func (s HistorySize) contents() tableContents {
434434
S := newSection
435435
I := newItem
436436
metric := counts.Metric

0 commit comments

Comments
 (0)