No need to test before destroying the thread, this test already exists inside

`std::optional::reset()`.
This commit is contained in:
Daniel K. O. (dkosmari) 2025-02-05 04:59:12 -03:00 committed by Maschell
parent 51e6092b91
commit ae89d71672

View File

@ -49,9 +49,7 @@ void RemoveButtonComboHandles(NotificationModuleHandle, void *) {
}
void StopUpdaterCheckThread() {
if (sCheckUpdateThread) {
sCheckUpdateThread.reset();
}
sCheckUpdateThread.reset();
RemoveButtonComboHandles(0, nullptr);
}