chore(commons): prettier

enforce trailing commas as this is the norm in the frontend and makes diffs better readable

Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
Philip Molares 2025-03-21 21:13:30 +01:00
parent 59744b65ea
commit aa87ff35b3
32 changed files with 171 additions and 171 deletions

View file

@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
* SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file)
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
@ -18,11 +18,11 @@ export function parseUrl(url: string | undefined): Optional<URL> {
return createOptionalUrl(url)
.guard(
(value) => value.protocol === 'https:' || value.protocol === 'http:',
() => new WrongProtocolError()
() => new WrongProtocolError(),
)
.guard(
(value) => value.pathname === '/',
() => new NoSubdirectoryAllowedError()
() => new NoSubdirectoryAllowedError(),
)
}