diff options
author | Matthew Holt <[email protected]> | 2019-05-21 14:22:21 -0600 |
---|---|---|
committer | Matthew Holt <[email protected]> | 2019-05-21 14:22:21 -0600 |
commit | 2fd98cb040b617d2a018ae00a3a68b320de7dbc6 (patch) | |
tree | 91de4d369ec2a94c8f4fc3de4ba256945ad50297 /storage.go | |
parent | 67d32e6779b8e4f67fb0902b06210596371ead7f (diff) | |
download | caddy-2fd98cb040b617d2a018ae00a3a68b320de7dbc6.tar.gz caddy-2fd98cb040b617d2a018ae00a3a68b320de7dbc6.zip |
Module.New() does not need to return an error
Diffstat (limited to 'storage.go')
-rw-r--r-- | storage.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage.go b/storage.go index 2b77851a2..2e35ac158 100644 --- a/storage.go +++ b/storage.go @@ -11,7 +11,7 @@ import ( func init() { RegisterModule(Module{ Name: "caddy.storage.file_system", - New: func() (interface{}, error) { return new(fileStorage), nil }, + New: func() interface{} { return new(fileStorage) }, }) } |