From 5b02120f96d8f57ed83f44f9cf293a6aeecb39fe Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 23 Feb 2023 23:16:31 +0100 Subject: [PATCH] report/comparisonOfMeans.go: obj init readability --- report/comparisonOfMeans.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/report/comparisonOfMeans.go b/report/comparisonOfMeans.go index fe8ed73..aed0a04 100644 --- a/report/comparisonOfMeans.go +++ b/report/comparisonOfMeans.go @@ -35,9 +35,10 @@ func SaveComparisonOfMeans(p PicList, benchCount int) { // split the slice to smaller, per-bench slices. for i := 0; i < len(p.Pics); i += benchCount { - pL := &PicList{} - pL.Pics = p.Pics[i : i+benchCount] - pL.Bench = p.Pics[i].Bench + pL := &PicList{ + Pics: p.Pics[i : i+benchCount], + Bench: p.Pics[i].Bench, + } benchPicLists = append(benchPicLists, *pL) }