Skip to content

Commit 2f420a0

Browse files
committed
Address copilot comments
Signed-off-by: liamfallon <liam.fallon@est.tech>
1 parent a5ee730 commit 2f420a0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

pkg/task/generictaskhandler.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,6 @@ func (th *genericTaskHandler) applySubpackageTask(
253253
return pkgerrors.New("for subpackage tasks, the task list must contain exactly 2 tasks, the source task followed by the subpackage task")
254254
}
255255

256-
var repo configapi.Repository
257-
if err := th.referenceResolver.ResolveReference(ctx, draft.Key().RKey().K8SNS(), draft.Key().RKey().K8SName(), &repo); err != nil {
258-
return pkgerrors.Wrapf(err, "cannot find repository for draft PR %+v", draft.Key())
259-
}
260-
261256
mut, err := th.mapTaskToMutation(obj, &obj.Spec.Tasks[1], false, nil)
262257
if err != nil {
263258
return err

0 commit comments

Comments
 (0)