Merged in chore/remove-unused-code (pull request #2229)

Remove unused code

* Remove unused scandic-web files

* Remove unused exports


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-05-30 12:41:18 +00:00
parent 44e648e758
commit 7e97b74c18
76 changed files with 1 additions and 3210 deletions

View File

@@ -9,11 +9,3 @@ export async function safeTry<T>(func: Promise<T>): SafeTryResult<T> {
return [undefined, err]
}
}
export function safeTrySync<T>(func: () => T): Awaited<SafeTryResult<T>> {
try {
return [func(), undefined]
} catch (err) {
return [undefined, err]
}
}