1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

refactor to use getBoolean

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2021-09-27 17:58:04 +03:00
parent 6e46668cbe
commit e7b803aa15

View File

@ -47,11 +47,7 @@ const followParam = "follow";
export function isLongRunningRequest(reqUrl: string) {
const url = new URL(reqUrl, "http://localhost");
if (getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam)) {
return true;
}
return false;
return getBoolean(url.searchParams, watchParam) || getBoolean(url.searchParams, followParam);
}
export class LensProxy extends Singleton {