From 51e24bec27259723ea9cd3f6ebc04299dbffafc5 Mon Sep 17 00:00:00 2001 From: Adrian Castro <22133246+castdrian@users.noreply.github.com> Date: Sun, 11 Feb 2024 22:32:26 +0100 Subject: [PATCH] chore: prettier --- apps/expo/src/app/videoPlayer.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/expo/src/app/videoPlayer.tsx b/apps/expo/src/app/videoPlayer.tsx index 5450ad4..fc9416e 100644 --- a/apps/expo/src/app/videoPlayer.tsx +++ b/apps/expo/src/app/videoPlayer.tsx @@ -173,16 +173,18 @@ const captionTypeToTextTracksType = { }; function convertCaptionsToTextTracks(captions: Caption[]): TextTracks { - return captions.map((caption) => { - if (Platform.OS === "ios" && caption.type !== "vtt") { - return null; - } + return captions + .map((caption) => { + if (Platform.OS === "ios" && caption.type !== "vtt") { + return null; + } - return { - title: caption.language, - language: caption.language as ISO639_1, - type: captionTypeToTextTracksType[caption.type], - uri: caption.url, - }; - }).filter(Boolean) as TextTracks; + return { + title: caption.language, + language: caption.language as ISO639_1, + type: captionTypeToTextTracksType[caption.type], + uri: caption.url, + }; + }) + .filter(Boolean) as TextTracks; }