simplify conditional operation, remove useless parantheses
This commit is contained in:
parent
549ba65861
commit
b29d5df7a2
@ -114,7 +114,7 @@ SimpleLogger::~SimpleLogger()
|
|||||||
std::lock_guard<std::mutex> lock(get_mutex());
|
std::lock_guard<std::mutex> lock(get_mutex());
|
||||||
if (!LogPolicy::GetInstance().IsMute())
|
if (!LogPolicy::GetInstance().IsMute())
|
||||||
{
|
{
|
||||||
const bool is_terminal = (isatty(fileno(stdout)) ? false : true);
|
const bool is_terminal = isatty(fileno(stdout));
|
||||||
switch (level)
|
switch (level)
|
||||||
{
|
{
|
||||||
case logWARNING:
|
case logWARNING:
|
||||||
|
Loading…
Reference in New Issue
Block a user