Skip to content

Commit 6b160fc

Browse files
authored
fix clone funcs of InputStats and OutputStats (#400)
1 parent afb2f01 commit 6b160fc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stats.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,13 @@ func newOutputStats() *OutputStats {
9393
}
9494

9595
func (is *InputStats) clone() *InputStats {
96-
return &(*is)
96+
var clone = *is
97+
return &clone
9798
}
9899

99100
func (os *OutputStats) clone() *OutputStats {
100-
return &(*os)
101+
var clone = *os
102+
return &clone
101103
}
102104

103105
type inputStatsMap map[string]*InputStats

0 commit comments

Comments
 (0)