From b29d5df7a21cacc94556681faddd46740af3e634 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 15 Oct 2014 10:43:58 +0200 Subject: [PATCH] simplify conditional operation, remove useless parantheses --- Util/simple_logger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Util/simple_logger.cpp b/Util/simple_logger.cpp index 36353eac5..1ea7ea66f 100644 --- a/Util/simple_logger.cpp +++ b/Util/simple_logger.cpp @@ -114,7 +114,7 @@ SimpleLogger::~SimpleLogger() std::lock_guard 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: