mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-04-27 15:07:43 +00:00
Fix null pointer when viewing repos for an account with revoked credentials.
This commit is contained in:
parent
6b8e347a72
commit
c0a76b82a6
1 changed files with 3 additions and 1 deletions
|
|
@ -118,8 +118,10 @@ func reposAdminHandler(w http.ResponseWriter, r *http.Request) *AppError {
|
||||||
|
|
||||||
user, _, err := githubClient.Users.Get("")
|
user, _, err := githubClient.Users.Get("")
|
||||||
repos, reposErr := getRepos(c, githubClient, account, user)
|
repos, reposErr := getRepos(c, githubClient, account, user)
|
||||||
|
if err == nil {
|
||||||
|
repos.Redact()
|
||||||
|
}
|
||||||
|
|
||||||
repos.Redact()
|
|
||||||
var data = map[string]interface{}{
|
var data = map[string]interface{}{
|
||||||
"User": user,
|
"User": user,
|
||||||
"Repos": repos,
|
"Repos": repos,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue