Resolve linting errors

This commit is contained in:
estib 2024-09-02 15:18:31 +02:00
parent 8192b4e5fa
commit 105ad7d0fa
3 changed files with 8 additions and 15 deletions

View File

@ -14,24 +14,18 @@
modal.close();
}
function handleClick() {
if (noModal) {
onDeleteClicked();
} else {
modal.show();
function handleClick() {
if (noModal) {
onDeleteClicked();
} else {
modal.show();
}
}
}
let modal: Modal;
</script>
<Button
style="error"
kind="solid"
icon="bin-small"
reversedDirection
onclick={handleClick}
>
<Button style="error" kind="solid" icon="bin-small" reversedDirection onclick={handleClick}>
Remove project…
</Button>

View File

@ -16,7 +16,6 @@ export interface FailedToOpenRepoInexistentError extends BaseKnownError {
export type KnownError = FailedToOpenRepoInexistentError;
export function getErrorMessage(something: unknown): string | null {
if (something instanceof Error) return something.message;
if (typeof something === 'string') return something;

View File

@ -98,7 +98,7 @@ pub mod commands {
projects: State<'_, Controller>,
path: &path::Path,
) -> Result<(), Error> {
let project = projects
let project = projects
.list()
.context("failed to list projects")?
.into_iter()