Skip to content

Commit 6689013

Browse files
committed
fix: redis config get string with quote
1 parent 548c203 commit 6689013

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/unstructured/redis_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (r *redisConfig) GetString(key string) (string, error) {
124124
res := make([]string, 0)
125125
for i := len(keys); i < len(item.Values); i++ {
126126
v := item.Values[i]
127-
if ContainerEscapeString(v) {
127+
if v == "" || ContainerEscapeString(v) {
128128
res = append(res, strconv.Quote(v))
129129
} else {
130130
res = append(res, v)

0 commit comments

Comments
 (0)