From 39be08c0db40ead4327214941252d9e8548d569e Mon Sep 17 00:00:00 2001 From: Tian Liao Date: Wed, 24 Apr 2024 12:17:44 +0800 Subject: [PATCH] remove an assertion --- src/CalcViewModel/Common/NavCategory.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/CalcViewModel/Common/NavCategory.cpp b/src/CalcViewModel/Common/NavCategory.cpp index 904209e3..4f428b95 100644 --- a/src/CalcViewModel/Common/NavCategory.cpp +++ b/src/CalcViewModel/Common/NavCategory.cpp @@ -55,11 +55,6 @@ namespace // put the utils within this TU { static auto enabled = [] { - if (CurrentUserId == nullptr) - { - throw std::logic_error{ "SetCurrentUser must be invoked at least once." }; - } - auto user = User::GetFromId(CurrentUserId); if (user == nullptr) {