From 6a775c5a949402cae9a17ba34d484af907e622a2 Mon Sep 17 00:00:00 2001 From: Christopher Phillips Date: Mon, 31 Jan 2022 13:18:55 -0500 Subject: [PATCH] remove writer from attest command Signed-off-by: Christopher Phillips --- cmd/attest.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cmd/attest.go b/cmd/attest.go index eae96b146d08..a4b92fba70fe 100644 --- a/cmd/attest.go +++ b/cmd/attest.go @@ -9,7 +9,6 @@ import ( "github.com/anchore/stereoscope" "github.com/anchore/syft/internal" - "github.com/anchore/syft/internal/log" "github.com/anchore/syft/internal/ui" "github.com/anchore/syft/syft" "github.com/anchore/syft/syft/format" @@ -57,17 +56,6 @@ var ( ) func attestExec(_ *cobra.Command, args []string) error { - writer, err := makeWriter([]string{string(format.AttestationOption)}, appConfig.File) - if err != nil { - return err - } - - defer func() { - if err := writer.Close(); err != nil { - log.Warnf("unable to write to attestation destination: %w", err) - } - }() - // can only be an image for attestation userInput := args[0]