2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-24 14:04:14 +03:00

Update buildURL.js

Two if statements is unnecessary, we can replace with "if ... else ..."
This commit is contained in:
刘涛
2017-11-23 16:22:55 +08:00
committed by GitHub
parent d7f021b8d4
commit a1e895d670
+1 -3
View File
@@ -41,9 +41,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
if (utils.isArray(val)) {
key = key + '[]';
}
if (!utils.isArray(val)) {
} else {
val = [val];
}