mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +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("")
|
||||
repos, reposErr := getRepos(c, githubClient, account, user)
|
||||
if err == nil {
|
||||
repos.Redact()
|
||||
}
|
||||
|
||||
repos.Redact()
|
||||
var data = map[string]interface{}{
|
||||
"User": user,
|
||||
"Repos": repos,
|
||||
|
|
|
|||
Loading…
Reference in a new issue