Skip to content

Commit

Permalink
Revert "Fix plugin addition (#1717)"
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 fcee4c4 commit a0fada2
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 a0fada2

Please sign in to comment.