diff options
Diffstat (limited to 'internal/admin/api_room_insert_remove.go')
| -rw-r--r-- | internal/admin/api_room_insert_remove.go | 6 |
1 files changed, 1 insertions, 5 deletions
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 == "" { |
