Skip to content

Commit

Permalink
♻️ Execute async block directly instead of calling run()
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Jul 22, 2020
1 parent d0583d7 commit ed6b7e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface SimplifiedExec {
version: () => void;
}

const run = async () => {
(async () => {
const { command, flags } = parseArguments();

// Ugly repetitive code since pkg doesn't work well with dynamic importing
Expand Down Expand Up @@ -61,6 +61,4 @@ const run = async () => {
}

exec.run();
};

run();
})();

0 comments on commit ed6b7e5

Please sign in to comment.