mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-12 01:40:33 +08:00
Mark floating promises with void
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
}, 800);
|
||||
|
||||
const copy = () => {
|
||||
toClipboard(text);
|
||||
void toClipboard(text);
|
||||
dispatch("copied");
|
||||
icon = small ? "checkmark-small" : "checkmark";
|
||||
restoreIcon();
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
push(route);
|
||||
void push(route);
|
||||
dispatch("afterNavigate");
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -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 ?? "",
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
updateProjectRoute(projectParams);
|
||||
void updateProjectRoute(projectParams);
|
||||
dispatch("click");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user