Skip to content

Commit

Permalink
Fix bug in MergeAddons
Browse files Browse the repository at this point in the history
* Replace existing addon if v (new) replaces() existing, instead
  of the other way around.
  • Loading branch information
nckturner committed Oct 13, 2020
1 parent f8d00cc commit 61ac9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channels/pkg/channels/addon.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (m *AddonMenu) MergeAddons(o *AddonMenu) {
if existing == nil {
m.Addons[k] = v
} else {
if existing.ChannelVersion().replaces(v.ChannelVersion()) {
if v.ChannelVersion().replaces(existing.ChannelVersion()) {
m.Addons[k] = v
}
}
Expand Down

0 comments on commit 61ac9a5

Please sign in to comment.