summaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin.go b/admin.go
index 59b3dcd..3ea5051 100644
--- a/admin.go
+++ b/admin.go
@@ -1018,7 +1018,7 @@ func handleConfigID(w http.ResponseWriter, r *http.Request) error {
// map the ID to the expanded path
currentCtxMu.RLock()
expanded, ok := rawCfgIndex[id]
- defer currentCtxMu.RUnlock()
+ currentCtxMu.RUnlock()
if !ok {
return APIError{
HTTPStatus: http.StatusNotFound,