Fix all 93 ESLint issues (3 errors, 90 warnings) (#666)

This commit is contained in:
Thomas Durieux
2026-04-15 09:04:22 +02:00
committed by GitHub
parent 1d97c76e7e
commit f4209110c7
28 changed files with 77 additions and 69 deletions
+3 -3
View File
@@ -99,7 +99,7 @@ export class GitHubRepository {
}
} catch (error) {
throw new AnonymousError("repo_not_found", {
httpStatus: (error as any).status,
httpStatus: (error as { status?: number }).status,
cause: error as Error,
object: this,
});
@@ -212,7 +212,7 @@ export async function getRepositoryFromGitHub(opt: {
if (opt.repo.indexOf(".git") > -1) {
opt.repo = opt.repo.replace(".git", "");
}
let dbModel = null;
let dbModel;
if (opt.repositoryID) {
dbModel = isConnected
? await RepositoryModel.findById(opt.repositoryID)
@@ -255,7 +255,7 @@ export async function getRepositoryFromGitHub(opt: {
});
}
throw new AnonymousError("repo_not_found", {
httpStatus: (error as any).status,
httpStatus: (error as { status?: number }).status,
object: {
owner: opt.owner,
repo: opt.repo,