chore: fix lint errors
This commit is contained in:
parent
cf86ff57de
commit
d60d7dba1f
@ -63,8 +63,8 @@ export function removePrefix(url) {
|
|||||||
|
|
||||||
export function createURL(endpoint, params = {}, auth = true) {
|
export function createURL(endpoint, params = {}, auth = true) {
|
||||||
let prefix = baseURL;
|
let prefix = baseURL;
|
||||||
if (prefix[prefix.length] != '/') {
|
if (prefix[prefix.length] !== "/") {
|
||||||
prefix = prefix + '/';
|
prefix = prefix + "/";
|
||||||
}
|
}
|
||||||
const url = new URL(prefix + encodePath(endpoint), origin);
|
const url = new URL(prefix + encodePath(endpoint), origin);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user