Skip to content

Commit c5a86da

Browse files
authored
Hide analysis hint when scan findings are present for non-Terminal renderers (#797)
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent f9e7d32 commit c5a86da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/mal/mal.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,8 @@ func main() {
565565
return err
566566
}
567567

568-
if length > 0 && mc.Renderer.Name() != "Interactive" {
568+
show := length > 0 && (mc.Renderer.Name() == "Simple" || strings.Contains(mc.Renderer.Name(), "Terminal"))
569+
if show {
569570
fmt.Fprintf(os.Stderr, "\n💡 For detailed analysis, try \"mal analyze <path>\"\n")
570571
}
571572

0 commit comments

Comments
 (0)