From eeea258aeba27591b80d66bc44d8b0c24b6c6663 Mon Sep 17 00:00:00 2001 From: Casper Engelmann Date: Wed, 3 Apr 2019 09:17:32 +0200 Subject: [PATCH] added return types + noreleasecheck --- public/src/lib/Transfer.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/src/lib/Transfer.ts b/public/src/lib/Transfer.ts index 31b3295..d8f7e6f 100644 --- a/public/src/lib/Transfer.ts +++ b/public/src/lib/Transfer.ts @@ -48,13 +48,13 @@ export class Transfer { this.writeLogToDisk = this.writeLogToDisk.bind(this); } - public start(): any { + public start(): NodeJS.Process | void { try { if (!this.command) { return; } - this.process = spawn(`${path.join(execPath, 'sync_bin')}`, [...this.command, '--nolog'], { + this.process = spawn(`${path.join(execPath, 'sync_bin')}`, [...this.command, '--nolog', '--noreleasecheck'], { detached: true, }); @@ -72,7 +72,7 @@ export class Transfer { } } - public stop(): any { + public stop(): void { try { this.command = ['']; } catch (err) {