chore(deps): upgrade dependencies for commons

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-10-22 21:08:14 +02:00
parent 6d0d7c31ff
commit d6549a1d0b
3 changed files with 212 additions and 13 deletions

View file

@ -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()
}
}