Remove unnecessary else
This commit is contained in:
parent
080ffa9f8e
commit
fa4e15e3ae
|
@ -214,7 +214,8 @@ func quoteTo(buf *strings.Builder, quotePair string, value string) {
|
||||||
if len(quotePair) < 2 { // no quote
|
if len(quotePair) < 2 { // no quote
|
||||||
_, _ = buf.WriteString(value)
|
_, _ = buf.WriteString(value)
|
||||||
return
|
return
|
||||||
} else {
|
}
|
||||||
|
|
||||||
prefix, suffix := quotePair[0], quotePair[1]
|
prefix, suffix := quotePair[0], quotePair[1]
|
||||||
|
|
||||||
i := 0
|
i := 0
|
||||||
|
@ -247,7 +248,6 @@ func quoteTo(buf *strings.Builder, quotePair string, value string) {
|
||||||
_ = buf.WriteByte(suffix)
|
_ = buf.WriteByte(suffix)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (engine *Engine) quote(sql string) string {
|
func (engine *Engine) quote(sql string) string {
|
||||||
|
|
Loading…
Reference in New Issue