Return an empty string if no value was provided.

This restores the original behavior of the initial patch.
This commit is contained in:
Sean Chittenden 2016-12-25 15:26:54 -08:00
parent 7d19fcae25
commit c3a3ddc0f5
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (c *Config) NewClient() (*Client, error) {
b.WriteString(`'`) b.WriteString(`'`)
str := b.String() str := b.String()
if haveWhitespace { if haveWhitespace || len(str) == 2 {
return str return str
} }
return str[1 : len(str)-1] return str[1 : len(str)-1]