We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26c43a commit 3f58f1fCopy full SHA for 3f58f1f
cmd/murphy/internal/scan/cmd.go
@@ -410,10 +410,10 @@ func doSBOMOnlyPrint(ctx context.Context, task *model.ScanTask) {
410
}
411
var bufioWriter = bufio.NewWriter(writer)
412
var enc = json.NewEncoder(bufioWriter)
413
- must.M(bufioWriter.Flush())
414
enc.SetIndent("", " ")
415
if task.Modules == nil {
416
task.Modules = make([]model.Module, 0)
417
418
must.M(enc.Encode(map[string]any{"modules": task.Modules}))
+ must.M(bufioWriter.Flush())
419
0 commit comments