implict bool

Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
Aaron Kimbrell 2024-06-06 21:34:10 -05:00 committed by GitHub
parent 42cf2b6377
commit 0e6cb8ab19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,8 +24,8 @@ void CDDeletionRestrictionsTable::LoadValuesFromDatabase() {
if (!raw_ids.empty()) { if (!raw_ids.empty()) {
for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) { for (const auto& idstr : GeneralUtils::SplitString(raw_ids, ',')) {
if (!idstr.empty()) { if (!idstr.empty()) {
const auto id = GeneralUtils::TryParse<int32_t>(idstr).value_or(-1); const auto id = GeneralUtils::TryParse<int32_t>(idstr);
if (id != -1) entry.ids.push_back(id); if (id) entry.ids.push_back(id);
} }
} }
} }