From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/admin/api_room_insert_remove.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'internal/admin/api_room_insert_remove.go') diff --git a/internal/admin/api_room_insert_remove.go b/internal/admin/api_room_insert_remove.go index 812a3ae..45537d6 100644 --- a/internal/admin/api_room_insert_remove.go +++ b/internal/admin/api_room_insert_remove.go @@ -72,11 +72,7 @@ func (s *AdminServer) handleRoomInsert(w http.ResponseWriter, r *http.Request) { return } - newID, subdir, allocErr := s.nextRoomID(aID) - if allocErr != nil { - writeJSONError(w, fmt.Sprintf("could not allocate a room id: %v", allocErr), http.StatusInternalServerError) - return - } + newID, subdir := s.nextRoomID(aID) name := strings.TrimSpace(body.Name) if name == "" { -- cgit v1.2.3