mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04: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