chore: fix lint errors

This commit is contained in:
Oleg Lobanov 2022-06-06 16:49:47 +02:00
parent cf86ff57de
commit d60d7dba1f
No known key found for this signature in database
GPG Key ID: 65FF3DB864FE3D2A

View File

@ -63,8 +63,8 @@ export function removePrefix(url) {
export function createURL(endpoint, params = {}, auth = true) {
let prefix = baseURL;
if (prefix[prefix.length] != '/') {
prefix = prefix + '/';
if (prefix[prefix.length] !== "/") {
prefix = prefix + "/";
}
const url = new URL(prefix + encodePath(endpoint), origin);