From dc2682e10d5e75605af7b9832dec2122bc060275 Mon Sep 17 00:00:00 2001 From: SecretSheppy <62794249+SecretSheppy@users.noreply.github.com> Date: Mon, 27 Apr 2026 19:11:42 +0100 Subject: [PATCH] refactor: only creates review file if review are present --- internal/cmds/root.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/cmds/root.go b/internal/cmds/root.go index c6d8595..21d25de 100644 --- a/internal/cmds/root.go +++ b/internal/cmds/root.go @@ -180,6 +180,9 @@ func exportMutationReviews(conf *config.Config, activeFws []fwlib.Framework, db if err != nil { return err } + if len(reviews) == 0 { + continue + } if conf.Marv.Output.Merge { rs = append(rs, reviews...) continue @@ -189,7 +192,7 @@ func exportMutationReviews(conf *config.Config, activeFws []fwlib.Framework, db return err } } - if conf.Marv.Output.Merge { + if conf.Marv.Output.Merge && len(rs) != 0 { out := path.Join(conf.Marv.Output.Path, "mutations-review.json") return exportReviews(conf, rs, out) }