mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
chore: more small lint/perf fixes (#493)
Signed-off-by: James Hillyerd <james@hillyerd.com>
This commit is contained in:
@@ -306,15 +306,16 @@ LOOP:
|
||||
case c == '\\':
|
||||
inCharQuote = true
|
||||
case c == '"':
|
||||
if inCharQuote {
|
||||
switch {
|
||||
case inCharQuote:
|
||||
err = buf.WriteByte(c)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
inCharQuote = false
|
||||
} else if inStringQuote {
|
||||
case inStringQuote:
|
||||
inStringQuote = false
|
||||
} else {
|
||||
default:
|
||||
if i == 0 {
|
||||
inStringQuote = true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user