mirror of
https://github.com/gabime/spdlog.git
synced 2026-04-10 11:34:29 +08:00
Remove is_init() check on each log call
This commit is contained in:
@@ -52,14 +52,9 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool is_init() const
|
||||
{
|
||||
return socket_ != -1;
|
||||
}
|
||||
|
||||
void close()
|
||||
{
|
||||
if (is_init())
|
||||
if (socket_ != -1)
|
||||
{
|
||||
::close(socket_);
|
||||
socket_ = -1;
|
||||
|
||||
Reference in New Issue
Block a user