summaryrefslogtreecommitdiffhomepage
path: root/modules.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-05-21 14:22:21 -0600
committerMatthew Holt <[email protected]>2019-05-21 14:22:21 -0600
commit2fd98cb040b617d2a018ae00a3a68b320de7dbc6 (patch)
tree91de4d369ec2a94c8f4fc3de4ba256945ad50297 /modules.go
parent67d32e6779b8e4f67fb0902b06210596371ead7f (diff)
downloadcaddy-2fd98cb040b617d2a018ae00a3a68b320de7dbc6.tar.gz
caddy-2fd98cb040b617d2a018ae00a3a68b320de7dbc6.zip
Module.New() does not need to return an error
Diffstat (limited to 'modules.go')
-rw-r--r--modules.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules.go b/modules.go
index afe4b385a..19d203daa 100644
--- a/modules.go
+++ b/modules.go
@@ -20,7 +20,7 @@ type Module struct {
// invoke methods on the returned value.
// It must return a pointer; if not, it
// is converted into one.
- New func() (interface{}, error)
+ New func() interface{}
}
func (m Module) String() string { return m.Name }