aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-08-07 19:24:22 +0800
committerGitHub <noreply@github.com>2017-08-07 19:24:22 +0800
commit3991745c5f72033bdefb1ca5931f48857d8d9973 (patch)
treee647ebe8f33c30fe05e12cd6f1d8e0661bceb784
parent6dd2803b8e224a267df99709871e6d27710e6de9 (diff)
parentcd82b89fde6e898318015f6252f202b0bf6c3489 (diff)
downloadgo-tangerine-3991745c5f72033bdefb1ca5931f48857d8d9973.tar.gz
go-tangerine-3991745c5f72033bdefb1ca5931f48857d8d9973.tar.zst
go-tangerine-3991745c5f72033bdefb1ca5931f48857d8d9973.zip
Merge pull request #14921 from egonelbre/megacheck_log
log: fix megacheck warnings
-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)