Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-lowman-dd committed Mar 7, 2022
1 parent e5e6333 commit 0db8ee7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/targets/delegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"

"github.com/theupdateframework/go-tuf/data"
"github.com/theupdateframework/go-tuf/internal/sets"
"github.com/theupdateframework/go-tuf/verify"
)

Expand All @@ -25,11 +24,12 @@ var ErrTopLevelTargetsRoleMissing = errors.New("tuf: top level targets role miss
// NewDelegationsIterator initialises an iterator with a first step
// on top level targets.
func NewDelegationsIterator(target string, topLevelKeysDB *verify.DB) *delegationsIterator {
role := topLevelKeysDB.GetRole("targets")
// role := topLevelKeysDB.GetRole("targets")
keyIDs := []string{}
if role != nil {
keyIDs = sets.StringSetToSlice(role.KeyIDs)
}

// if role != nil {
// keyIDs = sets.StringSetToSlice(role.KeyIDs)
// }

i := &delegationsIterator{
target: target,
Expand Down

0 comments on commit 0db8ee7

Please sign in to comment.