Skip to content

Commit

Permalink
fix: Fixed floating promise in main() call
Browse files Browse the repository at this point in the history
  • Loading branch information
beneboy committed Oct 17, 2019
1 parent ec46d0e commit ade2abe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ts/interpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ const lps = require('length-prefixed-stream')
const EXECUTORS_DIR_NAME = 'executors'
const MANIFEST_FILE_NAME = 'javascript.json'

// eslint-disable-next-line @typescript-eslint/no-floating-promises
if (process.env.JEST_WORKER_ID === undefined) main()
if (process.env.JEST_WORKER_ID === undefined)
main()
.then()
.catch(log.error)

interface StringDict {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down

0 comments on commit ade2abe

Please sign in to comment.