completed lint driven refactoring

This commit is contained in:
evilsocket 2018-04-26 12:41:18 +02:00
commit 557d7dbe17
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
8 changed files with 27 additions and 47 deletions

View file

@ -97,7 +97,7 @@ func (p *EventPool) Add(tag string, data interface{}) {
}
func (p *EventPool) Log(level int, format string, args ...interface{}) {
if level == core.DEBUG && p.debug == false {
if level == core.DEBUG && !p.debug {
return
} else if level < core.ERROR && p.silent {
return