mirror of https://github.com/harness/drone.git
fix: [CODE-3173]: remove zero reference updated check (#3408)
* remove zero reference updated checkpull/3616/head
parent
d9c8d1c4d1
commit
01956e255a
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue