Skip to content

Commit

Permalink
Fix to remove empty asset URL after dedup
Browse files Browse the repository at this point in the history
Signed-off-by: morimoto-cybozu <[email protected]>
  • Loading branch information
morimoto-cybozu committed Nov 15, 2024
1 parent e3c985a commit 771201b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/etcd/asset_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ RETRY:
currentURLs := slices.Clone(a.URLs)
a.URLs = append(a.URLs, d.myURL("/api/v1/assets", a.Name))
slices.Sort(a.URLs)
slices.Compact(a.URLs)
a.URLs = slices.Compact(a.URLs)
if slices.Equal(currentURLs, a.URLs) || len(a.URLs) > maxAssetURLs {
return nil
}
Expand Down

0 comments on commit 771201b

Please sign in to comment.