mirror of
https://github.com/nathonius/obsidian-github-link.git
synced 2026-07-22 09:20:25 +00:00
🔨 refactor: #102 Sonar linting
This commit is contained in:
parent
1c6d1a28ad
commit
5327ed61ef
2 changed files with 1 additions and 4 deletions
|
|
@ -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") ?? "");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue