Skip to content

Commit 291df0e

Browse files
committed
HistorySize: change receiver to pointer
1 parent ee2696b commit 291df0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sizes/output.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (s TagSize) String() string {
4141
return fmt.Sprintf("tag_depth=%d", s.TagDepth)
4242
}
4343

44-
func (s HistorySize) String() string {
44+
func (s *HistorySize) String() string {
4545
return fmt.Sprintf(
4646
"unique_commit_count=%d, unique_commit_count = %d, max_commit_size = %d, "+
4747
"max_history_depth=%d, max_parent_count=%d, "+
@@ -369,7 +369,7 @@ type table struct {
369369
buf bytes.Buffer
370370
}
371371

372-
func (s HistorySize) TableString(
372+
func (s *HistorySize) TableString(
373373
refGroups []RefGroup, threshold Threshold, nameStyle NameStyle,
374374
) string {
375375
contents := s.contents(refGroups)
@@ -452,7 +452,7 @@ func (t *table) formatRow(
452452
)
453453
}
454454

455-
func (s HistorySize) JSON(
455+
func (s *HistorySize) JSON(
456456
refGroups []RefGroup, threshold Threshold, nameStyle NameStyle,
457457
) ([]byte, error) {
458458
contents := s.contents(refGroups)
@@ -462,7 +462,7 @@ func (s HistorySize) JSON(
462462
return j, err
463463
}
464464

465-
func (s HistorySize) contents(refGroups []RefGroup) tableContents {
465+
func (s *HistorySize) contents(refGroups []RefGroup) tableContents {
466466
S := newSection
467467
I := newItem
468468
metric := counts.Metric

0 commit comments

Comments
 (0)