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
@@ -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;
};
</script>
+1 -1
View File
@@ -44,7 +44,7 @@
$: showMoreButton =
!loading && !error && totalCommitCount && history.length < totalCommitCount;
loadHistory();
void loadHistory();
</script>
<style>
+2 -2
View File
@@ -258,7 +258,7 @@
<Textarea
resizable
on:submit={() => {
createComment(commentBody);
void createComment(commentBody);
commentBody = "";
}}
bind:value={commentBody}
@@ -274,7 +274,7 @@
size="small"
disabled={!commentBody}
on:click={() => {
createComment(commentBody);
void createComment(commentBody);
commentBody = "";
}}>
Comment
+1 -1
View File
@@ -74,7 +74,7 @@
$: {
page = 0;
issues = [];
loadIssues(state);
void loadIssues(state);
}
</script>
+1 -1
View File
@@ -76,7 +76,7 @@
$: {
page = 0;
patches = [];
loadPatches(state);
void loadPatches(state);
}
</script>
+2 -2
View File
@@ -87,7 +87,7 @@
if (activeRoute.params.route) {
const { revision, path } = parseRoute(activeRoute.params.route, branches);
updateProjectRoute(
void updateProjectRoute(
{
revision,
path,
@@ -123,7 +123,7 @@
}
function handleIssueCreation({ detail: issueId }: CustomEvent<string>) {
router.push({
void router.push({
resource: "projects",
params: {
id,