Skip to content

Commit

Permalink
fix: catch never executes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoehnelt authored Mar 29, 2020
2 parents 2b3ca20 + f1d353b commit 5a23c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 57 deletions.
51 changes: 0 additions & 51 deletions __tests__/main.test.ts

This file was deleted.

8 changes: 2 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,8 @@ export async function run(): Promise<void> {
)
);
} catch (error) {
/* istanbul ignore next */
() => {
// https://github.com/gotwarlost/istanbul/issues/361
core.error(error);
core.setFailed(error.message);
};
core.error(error);
core.setFailed(error.message);
}
}

Expand Down

0 comments on commit 5a23c38

Please sign in to comment.