add nil check

This commit is contained in:
runzexia 2018-07-06 15:40:59 +08:00
parent 8d9d57803e
commit f623894d7a
1 changed files with 4 additions and 1 deletions

View File

@ -211,7 +211,10 @@ func (b *Builder) parseRequestParams() error {
dst[i] = *(fieldValue[i])
}
}
requestParams[tagKey] = strings.Join(dst, ",")
if len(dst) != 0 {
requestParams[tagKey] = strings.Join(dst, ",")
}
}
}
}