From 230c24cca5ac4926b8e8125cbe26efeba99d5ddc Mon Sep 17 00:00:00 2001 From: Hachi-R Date: Mon, 23 Dec 2024 14:07:15 -0300 Subject: [PATCH] lint --- .../services/download/download-manager.ts | 21 +++++++++++-------- src/main/services/python-rpc.ts | 5 ++++- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/main/services/download/download-manager.ts b/src/main/services/download/download-manager.ts index 4aae5808..3a8da5b4 100644 --- a/src/main/services/download/download-manager.ts +++ b/src/main/services/download/download-manager.ts @@ -26,15 +26,18 @@ export class DownloadManager { public static startRPC(game: Game, initialSeeding?: Game[]) { if (game && game.status === "active") { - PythonRPC.spawn({ - game_id: game.id, - url: game.uri!, - save_path: game.downloadPath!, - }, initialSeeding?.map((game) => ({ - game_id: game.id, - url: game.uri!, - save_path: game.downloadPath!, - }))); + PythonRPC.spawn( + { + game_id: game.id, + url: game.uri!, + save_path: game.downloadPath!, + }, + initialSeeding?.map((game) => ({ + game_id: game.id, + url: game.uri!, + save_path: game.downloadPath!, + })) + ); this.downloadingGameId = game.id; } diff --git a/src/main/services/python-rpc.ts b/src/main/services/python-rpc.ts index dc03f0de..19622a99 100644 --- a/src/main/services/python-rpc.ts +++ b/src/main/services/python-rpc.ts @@ -42,7 +42,10 @@ export class PythonRPC { readable.on("data", logger.log); } - public static spawn(initialDownload?: GamePayload, initialSeeding?: GamePayload[]) { + public static spawn( + initialDownload?: GamePayload, + initialSeeding?: GamePayload[] + ) { const commonArgs = [ this.BITTORRENT_PORT, this.RPC_PORT,