simplify conditional operation, remove useless parantheses

This commit is contained in:
Dennis Luxen 2014-10-15 10:43:58 +02:00
parent 549ba65861
commit b29d5df7a2

View File

@ -114,7 +114,7 @@ SimpleLogger::~SimpleLogger()
std::lock_guard<std::mutex> lock(get_mutex());
if (!LogPolicy::GetInstance().IsMute())
{
const bool is_terminal = (isatty(fileno(stdout)) ? false : true);
const bool is_terminal = isatty(fileno(stdout));
switch (level)
{
case logWARNING: