From 84af957ff0df222301ce89300022ebac3adcd26a Mon Sep 17 00:00:00 2001 From: DevMiner Date: Thu, 18 Jul 2024 00:27:28 +0200 Subject: [PATCH] fix(reports): no change in subdependencies should not be red --- report.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report.go b/report.go index 46643ed..90b73ff 100644 --- a/report.go +++ b/report.go @@ -288,10 +288,10 @@ func reportSizeDifference(oldSize uint64, newSize uint64, downloads *uint64, tot } func reportSubdependencies(oldSubdependencies, newSubdependencies int64) { - var indicatorColor *color.Color + indicatorColor := boldGray if oldSubdependencies > newSubdependencies { indicatorColor = boldGreen - } else { + } else if oldSubdependencies < newSubdependencies { indicatorColor = boldRed } subdepsFmt := indicatorColor.Sprint(fmtInt(newSubdependencies))