Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
/api/stop doesn't return a JSON response anymore
Browse files Browse the repository at this point in the history
it prevents the following exception:
```
(node:10648) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at DaemonCommander.stop
```
  • Loading branch information
anjannath authored and gbraad committed Mar 4, 2022
1 parent 7af3b1f commit 37edd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class DaemonCommander {
};

const {body} = await got(options);
return JSON.parse(body);
return body;
}

async delete() {
Expand Down

0 comments on commit 37edd1b

Please sign in to comment.