mirror of
https://github.com/documize/community.git
synced 2025-07-21 06:09:42 +02:00
remove redundant code
This commit is contained in:
parent
cf6410cfe8
commit
87be56bc4b
9 changed files with 39 additions and 105 deletions
|
@ -52,7 +52,6 @@ func listFailed(method string, config githubConfig, client *gogithub.Client, w h
|
|||
|
||||
provider.WriteJSON(w, owners)
|
||||
|
||||
|
||||
case "orgrepos":
|
||||
|
||||
var render []githubBranch
|
||||
|
@ -96,6 +95,9 @@ func listFailed(method string, config githubConfig, client *gogithub.Client, w h
|
|||
|
||||
provider.WriteJSON(w, render)
|
||||
|
||||
case "content":
|
||||
|
||||
provider.WriteJSON(w, refreshReportData(&config, client))
|
||||
|
||||
default:
|
||||
return true // failed to get a list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue