Skip to content

Commit

Permalink
added return types + noreleasecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Casper Engelmann committed Apr 3, 2019
1 parent 7c712db commit eeea258
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/src/lib/Transfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand All @@ -72,7 +72,7 @@ export class Transfer {
}
}

public stop(): any {
public stop(): void {
try {
this.command = [''];
} catch (err) {
Expand Down

0 comments on commit eeea258

Please sign in to comment.