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/id_alloc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/admin/id_alloc.go') diff --git a/internal/admin/id_alloc.go b/internal/admin/id_alloc.go index 3a3c973..83ca89c 100644 --- a/internal/admin/id_alloc.go +++ b/internal/admin/id_alloc.go @@ -13,7 +13,7 @@ import ( // collide with an ID that lives in a different subdirectory. The starting point // is the local subdir's minimum existing ID (clustering), then the first // globally-free ID scanning upward. -func (s *AdminServer) nextRoomID(fromRoomID int) (int, string, error) { +func (s *AdminServer) nextRoomID(fromRoomID int) (int, string) { base := filepath.Join(s.dataDir, "rooms") subdir, err := findRoomSubdir(base, fromRoomID) if err != nil { @@ -46,7 +46,7 @@ func (s *AdminServer) nextRoomID(fromRoomID int) (int, string, error) { for used[id] { id++ } - return id, subdir, nil + return id, subdir } func findRoomSubdir(base string, roomID int) (string, error) { -- cgit v1.2.3