🔨 refactor: #102 Sonar linting

This commit is contained in:
Nathan Smith 2024-06-30 14:38:53 -04:00
parent 1c6d1a28ad
commit 5327ed61ef
2 changed files with 1 additions and 4 deletions

View file

@ -67,7 +67,7 @@ export class GitHubApi {
do {
match = linkRelPattern.exec(link);
logger.debug(match);
if (match && match.groups) {
if (match?.groups) {
const params = new URLSearchParams(match.groups.qp);
const page = parseInt(params.get("page") ?? "");
const per_page = parseInt(params.get("per_page") ?? "");

View file

@ -51,7 +51,6 @@ export function getIssue(org: string, repo: string, issue: number, skipCache = f
return api.getIssue(org, repo, issue, getToken(org), skipCache);
}
// TODO: Cache this response
export function getMyIssues(
params: QueryParams,
org?: string,
@ -89,7 +88,6 @@ export function getMyIssues(
return api.listIssuesForToken(listParams, account.token, skipCache);
}
// TODO: Cache this response
export function getIssuesForRepo(
params: QueryParams,
org: string,
@ -133,7 +131,6 @@ export function getPullRequest(
return api.getPullRequest(org, repo, pullRequest, getToken(org), skipCache);
}
// TODO: Cache this response
export function getPullRequestsForRepo(
params: QueryParams,
org: string,