diff --git a/src/App.svelte b/src/App.svelte
index db8c0de14..fa5c27d32 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -21,7 +21,7 @@
const activeRouteStore = router.activeRouteStore;
- router.loadFromLocation();
+ void router.loadFromLocation();
session.initialize();
if (!window.VITEST && !window.PLAYWRIGHT && import.meta.env.PROD) {
diff --git a/src/App/Header/Connect.svelte b/src/App/Header/Connect.svelte
index 8394e16b1..7ae15bcd6 100644
--- a/src/App/Header/Connect.svelte
+++ b/src/App/Header/Connect.svelte
@@ -17,7 +17,7 @@
}, 800);
function copyToClipboard(clipboard: string) {
- toClipboard(clipboard);
+ void toClipboard(clipboard);
icon = "checkmark-small";
restoreIcon();
}
@@ -217,7 +217,7 @@
{
- disconnect();
+ void disconnect();
closeFocused();
}}>
Disconnect
diff --git a/src/App/Header/Search.svelte b/src/App/Header/Search.svelte
index 46fbe1aba..fbb065abf 100644
--- a/src/App/Header/Search.svelte
+++ b/src/App/Header/Search.svelte
@@ -47,7 +47,7 @@
} else if (searchResult.type === "projects") {
input = "";
if (searchResult.results.length === 1) {
- router.push({
+ void router.push({
resource: "projects",
params: {
view: { resource: "tree" },
diff --git a/src/components/Clipboard.svelte b/src/components/Clipboard.svelte
index 39131bd47..046b85f2b 100644
--- a/src/components/Clipboard.svelte
+++ b/src/components/Clipboard.svelte
@@ -20,7 +20,7 @@
}, 800);
const copy = () => {
- toClipboard(text);
+ void toClipboard(text);
dispatch("copied");
icon = small ? "checkmark-small" : "checkmark";
restoreIcon();
diff --git a/src/components/Link.svelte b/src/components/Link.svelte
index aa66e1383..b74753454 100644
--- a/src/components/Link.svelte
+++ b/src/components/Link.svelte
@@ -16,7 +16,7 @@
}
event.preventDefault();
- push(route);
+ void push(route);
dispatch("afterNavigate");
}
diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte
index ea8d99c26..cb56d26d3 100644
--- a/src/components/Markdown.svelte
+++ b/src/components/Markdown.svelte
@@ -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 ?? "",
diff --git a/src/components/ProjectLink.svelte b/src/components/ProjectLink.svelte
index 7f826ab87..6069a6d1a 100644
--- a/src/components/ProjectLink.svelte
+++ b/src/components/ProjectLink.svelte
@@ -19,7 +19,7 @@
}
event.preventDefault();
- updateProjectRoute(projectParams);
+ void updateProjectRoute(projectParams);
dispatch("click");
}
diff --git a/src/views/projects/Blob.svelte b/src/views/projects/Blob.svelte
index 2cb1135c9..e881f6590 100644
--- a/src/views/projects/Blob.svelte
+++ b/src/views/projects/Blob.svelte
@@ -63,7 +63,7 @@
// If we have a line number we should show the raw output.
let showMarkdown = line ? false : isMarkdown;
const toggleMarkdown = () => {
- updateProjectRoute({ line: undefined });
+ void updateProjectRoute({ line: undefined });
showMarkdown = !showMarkdown;
};
diff --git a/src/views/projects/History.svelte b/src/views/projects/History.svelte
index 1a4aa94d1..ddb2e5783 100644
--- a/src/views/projects/History.svelte
+++ b/src/views/projects/History.svelte
@@ -44,7 +44,7 @@
$: showMoreButton =
!loading && !error && totalCommitCount && history.length < totalCommitCount;
- loadHistory();
+ void loadHistory();