Skip to content

Commit

Permalink
remove writer from attest command
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <[email protected]>
  • Loading branch information
spiffcs committed Jan 31, 2022
1 parent 19e074d commit 6a775c5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cmd/attest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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]

Expand Down

0 comments on commit 6a775c5

Please sign in to comment.