Commit bc5df3b3 authored by johncming's avatar johncming Committed by Matt Holt

onevent: add missing return error (#2525)

parent 1a0292b8
......@@ -20,12 +20,15 @@ func setup(c *caddy.Controller) error {
}
// Register Event Hooks.
c.OncePerServerBlock(func() error {
err = c.OncePerServerBlock(func() error {
for _, cfg := range config {
caddy.RegisterEventHook("on-"+cfg.ID, cfg.Hook)
}
return nil
})
if err != nil {
return err
}
return nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment