mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Small refactor of accept-language header splitting
This commit is contained in:
@@ -268,7 +268,8 @@ export const asGenre = (genreName: string) => ({
|
||||
|
||||
const maybeAsGenre = (genreName: string | undefined): Genre | undefined =>
|
||||
pipe(
|
||||
O.fromNullable(genreName),
|
||||
genreName,
|
||||
O.fromNullable,
|
||||
O.map(asGenre),
|
||||
O.getOrElseW(() => undefined)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user