From 2fd98cb040b617d2a018ae00a3a68b320de7dbc6 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 21 May 2019 14:22:21 -0600 Subject: Module.New() does not need to return an error --- modules/caddyhttp/reverseproxy/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/caddyhttp/reverseproxy') diff --git a/modules/caddyhttp/reverseproxy/module.go b/modules/caddyhttp/reverseproxy/module.go index 1bfc9ad..7e149d0 100755 --- a/modules/caddyhttp/reverseproxy/module.go +++ b/modules/caddyhttp/reverseproxy/module.go @@ -8,6 +8,6 @@ import ( func init() { caddy2.RegisterModule(caddy2.Module{ Name: "http.responders.reverse_proxy", - New: func() (interface{}, error) { return new(LoadBalanced), nil }, + New: func() interface{} { return new(LoadBalanced) }, }) } -- cgit v1.2.3