mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-22 10:23:56 +00:00
refactor: ran prettier
This commit is contained in:
@@ -15,7 +15,6 @@ import crypto from "node:crypto";
|
||||
import fs from "node:fs";
|
||||
import { app } from "electron";
|
||||
|
||||
|
||||
interface DownloadStatus {
|
||||
numPeers: number;
|
||||
numSeeds: number;
|
||||
|
||||
@@ -7,12 +7,10 @@ const wasmPath = app.isPackaged
|
||||
? path.join(process.resourcesPath, "unrar.wasm")
|
||||
: path.join(__dirname, "..", "..", "unrar.wasm");
|
||||
|
||||
const wasmBinary = fs.readFileSync(
|
||||
require.resolve(wasmPath)
|
||||
);
|
||||
const wasmBinary = fs.readFileSync(require.resolve(wasmPath));
|
||||
|
||||
export class Unrar {
|
||||
private constructor(private extractor: Extractor<Uint8Array>) { }
|
||||
private constructor(private extractor: Extractor<Uint8Array>) {}
|
||||
|
||||
static async fromFilePath(filePath: string, targetFolder: string) {
|
||||
const extractor = await createExtractorFromFile({
|
||||
|
||||
Reference in New Issue
Block a user