Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
--global authored and shanalikhan committed Apr 18, 2019
1 parent b68c807 commit 5afcc08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"webpack-merge": "^4.2.1"
},
"dependencies": {
"@octokit/rest": "^16.16.4",
"@octokit/rest": "^16.23.2",
"fs-extra": "^7.0.1",
"https-proxy-agent": "^2.2.1",
"lockfile": "^1.0.4",
Expand Down
13 changes: 7 additions & 6 deletions src/service/githubService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@ export class GitHubService {

if (userToken !== null && userToken !== "") {
githubApiConfig.auth = `token ${userToken}`;
try {
this.github = new GitHubApi(githubApiConfig);
} catch (err) {
console.error(err);
}

}
try {
this.github = new GitHubApi(githubApiConfig);
} catch (err) {
console.error(err);
}
if (userToken !== null && userToken !== "") {
this.github.users
.getAuthenticated({})
.then(res => {
Expand Down

0 comments on commit 5afcc08

Please sign in to comment.