Skip to content

Commit

Permalink
Revert "Fix plugin addition (#1717)" (#1838)
Browse files Browse the repository at this point in the history
This reverts commit f591c8f.
  • Loading branch information
Code-Hex authored Jan 24, 2022
1 parent 1ed7e05 commit 972878a
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([]plugin.Plugin{p}, *plugins...)
*plugins = append(*plugins, p)
}
}

Expand Down

0 comments on commit 972878a

Please sign in to comment.