Skip to content

Commit

Permalink
Merge pull request #24 from TheDevMinerTV/fix/subdependencies-colors
Browse files Browse the repository at this point in the history
fix(reports): no change in subdependencies should not be red
  • Loading branch information
TheDevMinerTV authored Jul 17, 2024
2 parents 8ec83b6 + 84af957 commit c9d180e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions report.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c9d180e

Please sign in to comment.