mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-09 23:18:37 +02:00
fix: verify that a branch is found
This commit is contained in:
@@ -125,6 +125,13 @@ export class GitHubRepository {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!selected) {
|
||||||
|
throw new AnonymousError("readme_not_available", {
|
||||||
|
httpStatus: 404,
|
||||||
|
object: this,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
return selected.readme;
|
return selected.readme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user