From fdf494a5b388859b8a1d4e65cf8488e298149e77 Mon Sep 17 00:00:00 2001 From: WeiTheShinobi Date: Sun, 10 Dec 2023 18:09:44 +0800 Subject: [PATCH] Refactor verifyLogIsolation() for a more concise expression --- zlog/logger_core.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/zlog/logger_core.go b/zlog/logger_core.go index 619e2ac9..143e64c8 100644 --- a/zlog/logger_core.go +++ b/zlog/logger_core.go @@ -240,11 +240,7 @@ func (log *ZinxLoggerCore) OutPut(level int, s string) error { } func (log *ZinxLoggerCore) verifyLogIsolation(logLevel int) bool { - if log.isolationLevel > logLevel { - return true - } else { - return false - } + return log.isolationLevel > logLevel } func (log *ZinxLoggerCore) Debugf(format string, v ...interface{}) {