From a14581900490554d3cebfaf60a026b18125959ec Mon Sep 17 00:00:00 2001 From: Peter Rabbitson Date: Mon, 23 Nov 2020 18:46:59 +0100 Subject: [PATCH] More linter... --- cmd/lotus-shed/sr2-dealstats-rollup.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/lotus-shed/sr2-dealstats-rollup.go b/cmd/lotus-shed/sr2-dealstats-rollup.go index a9e848137..e0673013e 100644 --- a/cmd/lotus-shed/sr2-dealstats-rollup.go +++ b/cmd/lotus-shed/sr2-dealstats-rollup.go @@ -341,9 +341,9 @@ var rollupDealStatsCmd = &cli.Command{ defer outListFd.Close() //nolint:errcheck + ridiculousLintMandatedRebind := dl sort.Slice(dl, func(i, j int) bool { - dl := dl - return dl[j].PaddedSize < dl[i].PaddedSize + return ridiculousLintMandatedRebind[j].PaddedSize < ridiculousLintMandatedRebind[i].PaddedSize }) if err := json.NewEncoder(outListFd).Encode(