mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-05 17:15:19 +03:00
Resolve linting errors
This commit is contained in:
parent
8192b4e5fa
commit
105ad7d0fa
@ -25,13 +25,7 @@ function handleClick() {
|
||||
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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user