fix: verify that a branch is found

This commit is contained in:
tdurieux
2022-10-19 16:13:56 +02:00
parent 1a294a4f33
commit 15777c4a70

View File

@@ -125,6 +125,13 @@ export class GitHubRepository {
}
}
if (!selected) {
throw new AnonymousError("readme_not_available", {
httpStatus: 404,
object: this,
});
}
return selected.readme;
}