修改changelog信息和deepsource问题

This commit is contained in:
ruancongyong 2021-05-24 21:40:52 +08:00
parent 23d191da9a
commit b159750ef4
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# developing
- Add: Convenient way to generate mock object [4620](https://github.com/beego/beego/issues/4397)
- Add: Convenient way to generate mock object [4620](https://github.com/beego/beego/issues/4620)
- Infra: use dependabot to update dependencies. [4623](https://github.com/beego/beego/pull/4623)
- Lint: use golangci-lint. [4619](https://github.com/beego/beego/pull/4619)
- Chore: format code. [4615](https://github.com/beego/beego/pull/4615)

View File

@ -78,7 +78,7 @@ func mock(pv reflect.Value) (err error) {
// mock slice value
func mockSlice(tagValue string, pvv reflect.Value) (err error) {
if len(tagValue) == 0 {
if tagValue == "" {
return
}
sliceMetas := strings.Split(tagValue, ":")