summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-05-21 14:22:21 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-05-21 14:22:21 -0600
commit2fd98cb040b617d2a018ae00a3a68b320de7dbc6 (patch)
tree91de4d369ec2a94c8f4fc3de4ba256945ad50297 /modules/caddyhttp/reverseproxy
parent67d32e6779b8e4f67fb0902b06210596371ead7f (diff)
Module.New() does not need to return an error
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rwxr-xr-xmodules/caddyhttp/reverseproxy/module.go2
1 files changed, 1 insertions, 1 deletions
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) },
})
}