mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
lint
This commit is contained in:
parent
75100c1c60
commit
da5e8794ab
@ -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 New Issue
Block a user