Skip to content

Commit b79b3ce

Browse files
committed
Fix backward indicators
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent 91eb886 commit b79b3ce

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

pkg/render/terminal.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,10 @@ func renderFileSummary(_ context.Context, fr *malcontent.FileReport, w io.Writer
291291
diff = color.HiGreenString("+")
292292
}
293293

294-
if riskLevel < previousRiskLevel {
294+
if riskLevel > previousRiskLevel {
295295
nsIcon = color.HiYellowString("▲")
296296
}
297-
if riskLevel > previousRiskLevel {
297+
if riskLevel < previousRiskLevel {
298298
nsIcon = color.HiGreenString("▼")
299299
}
300300
if riskLevel == "NONE" {
8.03 KB
Binary file not shown.
8.12 KB
Binary file not shown.
8.12 KB
Binary file not shown.
8.12 KB
Binary file not shown.

0 commit comments

Comments
 (0)