mirror of
https://github.com/coredns/coredns.git
synced 2025-12-06 18:35:11 -05:00
Simplify plugin/pkg/fall (#1358)
* Simplify plugin/pkg/fall * Remove unused import * Fix fall_test * Get fall coverage to 100% just because * gofmt. sigh.
This commit is contained in:
@@ -34,7 +34,7 @@ func setupReverse(c *caddy.Controller) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func reverseParse(c *caddy.Controller) (nets networks, f *fall.F, err error) {
|
||||
func reverseParse(c *caddy.Controller) (nets networks, f fall.F, err error) {
|
||||
zones := make([]string, len(c.ServerBlockKeys))
|
||||
wildcard := false
|
||||
|
||||
@@ -87,8 +87,7 @@ func reverseParse(c *caddy.Controller) (nets networks, f *fall.F, err error) {
|
||||
wildcard = true
|
||||
|
||||
case "fallthrough":
|
||||
f = fall.New()
|
||||
f.SetZones(c.RemainingArgs())
|
||||
f.SetZonesFromArgs(c.RemainingArgs())
|
||||
|
||||
default:
|
||||
return nil, f, c.ArgErr()
|
||||
|
||||
Reference in New Issue
Block a user