diff --git a/include/spdlog/sinks/wincolor_sink-inl.h b/include/spdlog/sinks/wincolor_sink-inl.h index 587720ac..fc37db87 100644 --- a/include/spdlog/sinks/wincolor_sink-inl.h +++ b/include/spdlog/sinks/wincolor_sink-inl.h @@ -146,11 +146,6 @@ void SPDLOG_INLINE wincolor_sink::write_to_file_(const memory_buf_ return; } auto size = static_cast(formatted.size()); - if (size == 0) - { - return; - } - DWORD bytes_written = 0; bool ok = ::WriteFile(out_handle_, formatted.data(), size, &bytes_written, nullptr) != 0; if (!ok)