Return an empty string if no value was provided.
This restores the original behavior of the initial patch.
This commit is contained in:
parent
7d19fcae25
commit
c3a3ddc0f5
|
@ -58,7 +58,7 @@ func (c *Config) NewClient() (*Client, error) {
|
|||
b.WriteString(`'`)
|
||||
|
||||
str := b.String()
|
||||
if haveWhitespace {
|
||||
if haveWhitespace || len(str) == 2 {
|
||||
return str
|
||||
}
|
||||
return str[1 : len(str)-1]
|
||||
|
|
Loading…
Reference in New Issue