Clean spdlog.cpp added assert

This commit is contained in:
gabime 2024-12-06 15:28:34 +02:00
parent 03e9aacf11
commit 25b3f61b24

View File

@ -32,8 +32,9 @@ void set_global_logger(std::shared_ptr<logger> global_logger) {
} }
logger *global_logger_raw() noexcept { logger *global_logger_raw() noexcept {
assert(context_ref()->global_logger_raw() != nullptr); auto *rv = context_ref()->global_logger_raw();
return context_ref()->global_logger_raw(); assert(rv != nullptr);
return rv;
} }
void set_formatter(std::unique_ptr<formatter> formatter) { void set_formatter(std::unique_ptr<formatter> formatter) {