We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9296151 commit 38f5ffdCopy full SHA for 38f5ffd
1 file changed
src/fetchers/repo.js
@@ -89,7 +89,7 @@ const fetchRepo = async (username, reponame) => {
89
const isOrg = data.user === null && data.organization;
90
91
if (isUser) {
92
- if (!data.user.repository || data.user.repository.isPrivate) {
+ if (!data.user.repository) {
93
throw new Error("User Repository Not found");
94
}
95
return {
@@ -99,10 +99,7 @@ const fetchRepo = async (username, reponame) => {
99
100
101
if (isOrg) {
102
- if (
103
- !data.organization.repository ||
104
- data.organization.repository.isPrivate
105
- ) {
+ if (!data.organization.repository) {
106
throw new Error("Organization Repository Not found");
107
108
0 commit comments