We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5fdfe1 commit a460404Copy full SHA for a460404
src/fetchers/repo-fetcher.js
@@ -79,7 +79,7 @@ const fetchRepo = async (username, reponame) => {
79
const isOrg = data.user === null && data.organization;
80
81
if (isUser) {
82
- if (!data.user.repository || data.user.repository.isPrivate) {
+ if (!data.user.repository) {
83
throw new Error("User Repository Not found");
84
}
85
return {
@@ -89,10 +89,7 @@ const fetchRepo = async (username, reponame) => {
89
90
91
if (isOrg) {
92
- if (
93
- !data.organization.repository ||
94
- data.organization.repository.isPrivate
95
- ) {
+ if (!data.organization.repository) {
96
throw new Error("Organization Repository Not found");
97
98
0 commit comments