From d60d7dba1f9ba06a60c9bea367066e22658ddf6c Mon Sep 17 00:00:00 2001 From: Oleg Lobanov Date: Mon, 6 Jun 2022 16:49:47 +0200 Subject: [PATCH] chore: fix lint errors --- frontend/src/api/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/api/utils.js b/frontend/src/api/utils.js index e5ee94ec..b995bcb8 100644 --- a/frontend/src/api/utils.js +++ b/frontend/src/api/utils.js @@ -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);