Skip to content

Commit

Permalink
remove slice package
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Nauth <Forrin@users.noreply.github.com>
  • Loading branch information
Forrin committed Nov 29, 2023
1 parent 1c07922 commit 3bc44cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"fmt"
"path/filepath"
"slices"

intoto "github.com/in-toto/in-toto-golang/in_toto"
"github.com/spf13/cobra"
Expand Down Expand Up @@ -188,7 +187,8 @@ func run(cmd *cobra.Command, args []string) error {

var metadata intoto.Metadata
var err error
if slices.Contains(attestations, "link") {
if len(attestations) > 0 {
// For now any value passed to attestations will run the link attestor
attestor := intoto.LinkAttestor{
MaterialPaths: materialsPaths,
ProductPaths: productsPaths,
Expand Down

0 comments on commit 3bc44cf

Please sign in to comment.