diff --git a/dist/index.js b/dist/index.js index b97fe9272..d3641b0af 100644 --- a/dist/index.js +++ b/dist/index.js @@ -671,8 +671,7 @@ class IssuesProcessor { return issueResult.data.map((issue) => new issue_1.Issue(this.options, issue)); } catch (error) { - const rethrow = Error(`Getting issues was blocked by the error: ${error.message}`); - throw error; + throw Error(`Getting issues was blocked by the error: ${error.message}`); } }); } diff --git a/src/classes/issues-processor.ts b/src/classes/issues-processor.ts index 93ee6dcbc..407aee826 100644 --- a/src/classes/issues-processor.ts +++ b/src/classes/issues-processor.ts @@ -557,10 +557,7 @@ export class IssuesProcessor { (issue: Readonly): Issue => new Issue(this.options, issue) ); } catch (error) { - const rethrow = Error( - `Getting issues was blocked by the error: ${error.message}` - ); - throw error; + throw Error(`Getting issues was blocked by the error: ${error.message}`); } }