Skip to content

Commit

Permalink
Fix plugin addition (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwin authored Nov 18, 2021
1 parent 8fa6470 commit f591c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func NoPlugins() Option {

func AddPlugin(p plugin.Plugin) Option {
return func(cfg *config.Config, plugins *[]plugin.Plugin) {
*plugins = append(*plugins, p)
*plugins = append([]plugin.Plugin{p}, *plugins...)
}
}

Expand Down

0 comments on commit f591c8f

Please sign in to comment.