aboutsummaryrefslogtreecommitdiffstats
path: root/log/format.go
diff options
context:
space:
mode:
authorEgon Elbre <egonelbre@gmail.com>2017-08-07 00:35:37 +0800
committerEgon Elbre <egonelbre@gmail.com>2017-08-07 18:40:05 +0800
commitcd82b89fde6e898318015f6252f202b0bf6c3489 (patch)
tree54070194dc0fdde52a4e2268ace326e8b184e2f8 /log/format.go
parentb159cdd8dd33ba030e7af5aa144de43441e4f543 (diff)
downloaddexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar.gz
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar.bz2
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar.lz
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar.xz
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.tar.zst
dexon-cd82b89fde6e898318015f6252f202b0bf6c3489.zip
log: fix megacheck warnings
Diffstat (limited to 'log/format.go')
-rw-r--r--log/format.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/format.go b/log/format.go
index 6c19c7a55..0b07abb2a 100644
--- a/log/format.go
+++ b/log/format.go
@@ -330,7 +330,7 @@ func escapeString(s string) string {
needsEscape = true
}
}
- if needsEscape == false && needsQuotes == false {
+ if !needsEscape && !needsQuotes {
return s
}
e := stringBufPool.Get().(*bytes.Buffer)