Skip to content

Commit

Permalink
refactor(pr): remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
C0ZEN committed Sep 22, 2021
1 parent aa6139f commit 5f41ed0
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/classes/issues-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,27 +859,6 @@ export class IssuesProcessor {
}
}

private async _getPullRequest(
issue: Issue
): Promise<IPullRequest | undefined | void> {
const issueLogger: IssueLogger = new IssueLogger(issue);

try {
this._consumeIssueQueryOperation(issue);
this._statistics?.incrementFetchedPullRequestsCount();

const pullRequest = await this.client.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: issue.number
});

return pullRequest.data;
} catch (error) {
issueLogger.error(`Error when getting this $$type: ${error.message}`);
}
}

// Delete the branch on closed pull request
private async _deleteBranch(issue: Issue): Promise<void> {
const issueLogger: IssueLogger = new IssueLogger(issue);
Expand Down

0 comments on commit 5f41ed0

Please sign in to comment.