summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 2dcbddf..dc779f3 100644
--- a/system/admin/handlers.go
+++ b/system/admin/handlers.go
@@ -2142,7 +2142,7 @@ func addonHandler(res http.ResponseWriter, req *http.Request) {
return
}
- at, ok := addon.Types[id]
+ _, ok := addon.Types[id]
if !ok {
log.Println("Addon: ", id, "is not found in addon.Types map")
res.WriteHeader(http.StatusNotFound)