just use setup (#1574)

All these functions are namespaced by their package anyway; just use
setup().
This commit is contained in:
Miek Gieben
2018-02-28 19:56:14 -08:00
committed by GitHub
parent 4f3dc207a4
commit 654b88d8c4
9 changed files with 18 additions and 18 deletions

View File

@@ -10,11 +10,11 @@ import (
func init() {
caddy.RegisterPlugin("whoami", caddy.Plugin{
ServerType: "dns",
Action: setupWhoami,
Action: setup,
})
}
func setupWhoami(c *caddy.Controller) error {
func setup(c *caddy.Controller) error {
c.Next() // 'whoami'
if c.NextArg() {
return plugin.Error("whoami", c.ArgErr())