mirror of
https://github.com/harness/drone.git
synced 2025-05-05 15:32:56 +00:00
fix: [CODE-3173]: remove zero reference updated check (#3408)
* remove zero reference updated check
This commit is contained in:
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…
x
Reference in New Issue
Block a user