Skip to content

Commit 0fd1eeb

Browse files
committed
[updates] fix: Ignore index name comparison when no name is defined
1 parent 731ad88 commit 0fd1eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/updates/index.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (index *Index) ShouldUpgradeTo(newIndex *Index) error {
232232
// Upgrade in any case.
233233
return nil
234234

235-
case index.Name != newIndex.Name:
235+
case len(index.Name) > 0 && index.Name != newIndex.Name:
236236
return errors.New("new index name does not match")
237237

238238
case index.Published.After(newIndex.Published):

0 commit comments

Comments
 (0)