Skip to content

Commit

Permalink
fix plugin manager register error (#1313)
Browse files Browse the repository at this point in the history
Co-authored-by: 陈洪波 <chenhongbo@szkingdom.com>
  • Loading branch information
hb-chen and 陈洪波 committed Aug 31, 2020
1 parent 86948e2 commit e48624d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/manager.go
Expand Up @@ -61,7 +61,7 @@ func (m *manager) Register(plugin Plugin, opts ...PluginOption) error {
m.registered[options.Module][name] = true
}

if _, ok := m.plugins[options.Module]; !ok {
if _, ok := m.plugins[options.Module]; ok {
m.plugins[options.Module] = append(m.plugins[options.Module], plugin)
} else {
m.plugins[options.Module] = []Plugin{plugin}
Expand Down

0 comments on commit e48624d

Please sign in to comment.