mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
chore(deps): upgrade dependencies for commons
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
6d0d7c31ff
commit
d6549a1d0b
3 changed files with 212 additions and 13 deletions
|
@ -29,7 +29,7 @@ export function parseUrl(url: string | undefined): Optional<URL> {
|
|||
function createOptionalUrl(url: string | undefined): Optional<URL> {
|
||||
try {
|
||||
return Optional.ofNullable(url).map((value) => new URL(value))
|
||||
} catch (error) {
|
||||
} catch {
|
||||
return Optional.empty()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue