Mark floating promises with void

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-05-29 15:54:00 +02:00
parent 930210da80
commit 37f6cccced
14 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
}, 800);
const copy = () => {
toClipboard(text);
void toClipboard(text);
dispatch("copied");
icon = small ? "checkmark-small" : "checkmark";
restoreIcon();
+1 -1
View File
@@ -16,7 +16,7 @@
}
event.preventDefault();
push(route);
void push(route);
dispatch("afterNavigate");
}
</script>
+1 -1
View File
@@ -42,7 +42,7 @@
if (event.target.matches(".file-link")) {
event.preventDefault();
if ($activeRouteStore.resource === "projects") {
updateProjectRoute({
void updateProjectRoute({
path: utils.canonicalize(
event.target.getAttribute("href"),
$activeRouteStore.params.path ?? "",
+1 -1
View File
@@ -19,7 +19,7 @@
}
event.preventDefault();
updateProjectRoute(projectParams);
void updateProjectRoute(projectParams);
dispatch("click");
}
</script>