Remove unnecessary else

This commit is contained in:
Guillermo Prandi 2019-11-11 11:27:26 -03:00
parent 080ffa9f8e
commit fa4e15e3ae
1 changed files with 29 additions and 29 deletions

View File

@ -214,7 +214,8 @@ func quoteTo(buf *strings.Builder, quotePair string, value string) {
if len(quotePair) < 2 { // no quote
_, _ = buf.WriteString(value)
return
} else {
}
prefix, suffix := quotePair[0], quotePair[1]
i := 0
@ -247,7 +248,6 @@ func quoteTo(buf *strings.Builder, quotePair string, value string) {
_ = buf.WriteByte(suffix)
}
}
}
}
func (engine *Engine) quote(sql string) string {