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:
@@ -41,9 +41,7 @@ module.exports = function buildURL(url, params, paramsSerializer) {
|
||||
|
||||
if (utils.isArray(val)) {
|
||||
key = key + '[]';
|
||||
}
|
||||
|
||||
if (!utils.isArray(val)) {
|
||||
} else {
|
||||
val = [val];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user