Skip to content

Commit

Permalink
0.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonrt committed Mar 14, 2016
1 parent 02dd7d0 commit ec1a708
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GitHubInspectOrgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1983,6 +1983,7 @@ const s_CREATE_CREDENTIALS = (tokenOrPass) =>
const splitIndex = tokenOrPass.indexOf(':');

// Treat as username:password if tokenOrPass includes `:`.
/* istanbul ignore if */
if (splitIndex >= 0)
{
const partials = tokenOrPass.split(':', 2);
Expand Down Expand Up @@ -2387,6 +2388,7 @@ const s_GET_ORGS_AUTH = (githubInspect, options = {}) =>
{
githubInspect.getUserFromCredential(options).then((user) =>
{
/* istanbul ignore if */
if (user === null)
{
reject('s_GET_ORGS_AUTH error: user authentication failed.');
Expand Down Expand Up @@ -2489,10 +2491,12 @@ const s_IS_RATE_LIMIT_REACHED = (githubInspect, options = {}) =>
res.resources.core.remaining)
{
const remaining = res.resources.core.remaining;

/* istanbul ignore if */
if (remaining <= 0)
{
reject(`GitHub API rate limit reached for organization owner: '${organization.owner}
'; please try again at: '${new Date(res.resources.core.reset * 1000)}.`);
reject(`GitHub API rate limit reached for organization owner: '${organization.owner}`
+ `'; please try again at: '${new Date(res.resources.core.reset * 1000)}.`);
}
}

Expand Down

0 comments on commit ec1a708

Please sign in to comment.