summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-01-11 14:05:52 -0800
committerSteve Manuel <nilslice@gmail.com>2017-01-11 14:05:52 -0800
commit4ac51c12025de8e1a17788d34aa211d05ce8a48c (patch)
tree08a516547fd941ab7663778c1a82f97023740b06 /system/admin/handlers.go
parentad3572b01a17ff5a5d6722f097973f448261b2de (diff)
fixing redeclaration of err in handler
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index a7d367b..71f88c2 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -2228,7 +2228,7 @@ func addonHandler(res http.ResponseWriter, req *http.Request) {
}
}
- err := db.SetAddon(req.Form)
+ err = db.SetAddon(req.Form)
if err != nil {
log.Println("Error saving addon:", name, err)
res.WriteHeader(http.StatusInternalServerError)