Merge pull request #14921 from egonelbre/megacheck_log

log: fix megacheck warnings
This commit is contained in:
Péter Szilágyi 2017-08-07 14:24:22 +03:00 committed by GitHub
commit 3991745c5f

View File

@ -330,7 +330,7 @@ func escapeString(s string) string {
needsEscape = true needsEscape = true
} }
} }
if needsEscape == false && needsQuotes == false { if !needsEscape && !needsQuotes {
return s return s
} }
e := stringBufPool.Get().(*bytes.Buffer) e := stringBufPool.Get().(*bytes.Buffer)