From 656c0a34955aba6510db8706145ef1749944f6e8 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 27 Apr 2024 18:51:12 +0600 Subject: [PATCH] stream: add semicolons to imports --- src/modules/stream/internal.js | 8 ++++---- src/modules/stream/stream.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/modules/stream/internal.js b/src/modules/stream/internal.js index 75e18ece..412ba546 100644 --- a/src/modules/stream/internal.js +++ b/src/modules/stream/internal.js @@ -1,7 +1,7 @@ -import { request } from 'undici' -import { Readable } from 'node:stream' -import { assert } from 'console' -import { getHeaders } from './shared.js' +import { request } from 'undici'; +import { Readable } from 'node:stream'; +import { assert } from 'console'; +import { getHeaders } from './shared.js'; const CHUNK_SIZE = BigInt(8e6); // 8 MB const min = (a, b) => a < b ? a : b; diff --git a/src/modules/stream/stream.js b/src/modules/stream/stream.js index 0b9ba42c..3de1cb3e 100644 --- a/src/modules/stream/stream.js +++ b/src/modules/stream/stream.js @@ -1,5 +1,5 @@ import { streamAudioOnly, streamDefault, streamLiveRender, streamVideoOnly, convertToGif } from "./types.js"; -import { internalStream } from './internal.js' +import { internalStream } from './internal.js'; export default async function(res, streamInfo) { try { @@ -24,7 +24,7 @@ export default async function(res, streamInfo) { await streamDefault(streamInfo, res); break; } - } catch (e) { + } catch { res.status(500).json({ status: "error", text: "Internal Server Error" }); } }