fix: [CODE-3173]: remove zero reference updated check (#3408)

* remove zero reference updated check
pull/3616/head
Marko Gaćeša 2025-02-11 10:39:11 +00:00 committed by Harness
parent d9c8d1c4d1
commit 01956e255a
1 changed files with 0 additions and 4 deletions

View File

@ -166,10 +166,6 @@ func (u *RefUpdater) Init(ctx context.Context, refs []ReferenceUpdate) error {
})
}
if len(refs) > 0 && len(u.refs) == 0 {
return errors.New("updating zero references")
}
sort.Slice(u.refs, func(i, j int) bool {
return u.refs[i].Ref < u.refs[j].Ref
})