From 5bb9ed5f04175e1ec8b35c64de83faf6c60e8893 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Wed, 6 Aug 2025 01:09:00 +0800 Subject: [PATCH] :bug: Fix the god damn poll --- DysonNetwork.Sphere/Poll/PollService.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/DysonNetwork.Sphere/Poll/PollService.cs b/DysonNetwork.Sphere/Poll/PollService.cs index 61566cd..11f4115 100644 --- a/DysonNetwork.Sphere/Poll/PollService.cs +++ b/DysonNetwork.Sphere/Poll/PollService.cs @@ -94,8 +94,6 @@ public class PollService(AppDatabase db, ICacheService cache) case PollQuestionType.YesNo when answer[questionId].ValueKind != JsonValueKind.True && answer[questionId].ValueKind != JsonValueKind.False: throw new Exception($"Answer for question {question.Title} expected to be a boolean"); - default: - throw new ArgumentOutOfRangeException($"Question type is not supported: {question.Type} {answer[questionId].ValueKind}"); } } }