forked from mystiq/hydrogen-web
lint
This commit is contained in:
parent
75100c1c60
commit
da5e8794ab
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export default class HomeServerApi {
|
||||||
|
|
||||||
_request(method, csPath, queryParams = {}, body) {
|
_request(method, csPath, queryParams = {}, body) {
|
||||||
const queryString = Object.entries(queryParams)
|
const queryString = Object.entries(queryParams)
|
||||||
.filter(([name, value]) => value !== undefined)
|
.filter(([, value]) => value !== undefined)
|
||||||
.map(([name, value]) => `${encodeURIComponent(name)}=${encodeURIComponent(value)}`)
|
.map(([name, value]) => `${encodeURIComponent(name)}=${encodeURIComponent(value)}`)
|
||||||
.join("&");
|
.join("&");
|
||||||
const url = this._url(`${csPath}?${queryString}`);
|
const url = this._url(`${csPath}?${queryString}`);
|
||||||
|
|
Loading…
Reference in a new issue