types/model: fix parser for empty values

This commit is contained in:
Michael Yang
2024-05-07 09:59:21 -07:00
parent 3f71ba406a
commit 63bc884e25
2 changed files with 4 additions and 4 deletions

View File

@@ -249,10 +249,6 @@ func quote(s string) string {
}
func unquote(s string) (string, bool) {
if len(s) == 0 {
return "", false
}
// TODO: single quotes
if len(s) >= 3 && s[:3] == `"""` {
if len(s) >= 6 && s[len(s)-3:] == `"""` {