Skip to content

Commit

Permalink
use top-level await
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Oct 30, 2023
1 parent 3aa7ffd commit 817db0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"env": {
"node": true,
"es2021": true,
"es2022": true,
"mocha": true
},
"extends": [
Expand Down
6 changes: 2 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@

import { cli } from "./cli.js";

(async () => {
const exitCode = await cli();
process.exit(exitCode);
})();
const exitCode = await cli();
process.exit(exitCode);

0 comments on commit 817db0b

Please sign in to comment.