Minor optimization

This commit is contained in:
gabime 2018-11-21 16:01:28 +02:00
parent 0a8cce6984
commit 70d03fd9c3

View File

@ -729,9 +729,15 @@ public:
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
{
if(padinfo_.width_) {
scoped_pad p(msg.payload, padinfo_, dest);
fmt_helper::append_string_view(msg.payload, dest);
}
else
{
fmt_helper::append_string_view(msg.payload, dest);
}
}
};
class ch_formatter final : public flag_formatter