Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed May 19, 2024
1 parent 45ea618 commit 8c7ed71
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions action/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ class Inputs {
}
}

async function run(): Promise<void> {
const run = async (): Promise<void> => {
const inputs = new Inputs();

// Qt installer assumes basic requirements that are not installed by
Expand Down Expand Up @@ -458,11 +458,16 @@ async function run(): Promise<void> {
}
};

run()
.catch(err => {
core.setFailed(err.message)
process.exit(1)
void run()
.catch((err) => {
if (err instanceof Error) {
core.setFailed(err);
} else {
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
core.setFailed(`unknown error: ${err}`);
}
process.exit(1);
})
.then(() => {
process.exit(0)
process.exit(0);
});

0 comments on commit 8c7ed71

Please sign in to comment.