Skip to content

Commit 37b8d8e

Browse files
authored
Merge pull request #287 from WeiTheShinobi/refactor
Refactor verifyLogIsolation() for a more concise expression
2 parents 4951f22 + fdf494a commit 37b8d8e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

zlog/logger_core.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,7 @@ func (log *ZinxLoggerCore) OutPut(level int, s string) error {
240240
}
241241

242242
func (log *ZinxLoggerCore) verifyLogIsolation(logLevel int) bool {
243-
if log.isolationLevel > logLevel {
244-
return true
245-
} else {
246-
return false
247-
}
243+
return log.isolationLevel > logLevel
248244
}
249245

250246
func (log *ZinxLoggerCore) Debugf(format string, v ...interface{}) {

0 commit comments

Comments
 (0)