Skip to content

Commit

Permalink
Merge pull request #103 from yunify/add-stringslice-nil-check
Browse files Browse the repository at this point in the history
add nil check
  • Loading branch information
runzexia authored Jul 6, 2018
2 parents 8d9d578 + f623894 commit 2ca02f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion request/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",")
}

}
}
}
Expand Down

0 comments on commit 2ca02f7

Please sign in to comment.