mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-01 14:19:34 +02:00
fix: verify that a branch is found
This commit is contained in:
1 parent
1a294a4f33
commit
15777c4a70
1 file changed
+7
@@ -125,6 +125,13 @@ export class GitHubRepository {
|
||||
}
|
||||
}
|
||||
|
||||
if (!selected) {
|
||||
throw new AnonymousError("readme_not_available", {
|
||||
httpStatus: 404,
|
||||
object: this,
|
||||
});
|
||||
}
|
||||
|
||||
return selected.readme;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user