refactor to use getBoolean

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen committed 2021-09-27 17:58:04 +03:00
1 parent 6e46668cbe
commit e7b803aa15
1 file changed
+1 -5
+1 -5
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 {