Commit 62e2369f authored by Elias Sagmo Larsen's avatar Elias Sagmo Larsen
Browse files

linter Wrap a ternary expression in parens

parent 4e10ed2d
Pipeline #129189 passed with stage
in 37 seconds
......@@ -3,8 +3,12 @@ async function fetchFacilities(request) {
let url = new URL(window.location);
let page = url.searchParams.get("page");
if (typeof page == "string") {
page = page >>> 0 === parseFloat(page) ? parseInt(page) : 1;
}else{page = 1;}
page = page >>> 0 === (
parseFloat(page) ? parseInt(page) : 1
);
} else {
page = 1;
}
let response = await sendRequest("GET", `${HOST}/api/facilities/?page=${page}`);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment