Skip to content

Commit

Permalink
Merge pull request #287 from WeiTheShinobi/refactor
Browse files Browse the repository at this point in the history
Refactor verifyLogIsolation() for a more concise expression
  • Loading branch information
aceld authored Dec 12, 2023
2 parents 4951f22 + fdf494a commit 37b8d8e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions zlog/logger_core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down

0 comments on commit 37b8d8e

Please sign in to comment.