mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
remove redundant code
This commit is contained in:
parent
cf6410cfe8
commit
87be56bc4b
9 changed files with 39 additions and 105 deletions
|
@ -258,7 +258,7 @@ func getCommits(client *gogithub.Client, config *githubConfig) ([]githubCommit,
|
|||
sort.Strings(v.Repos)
|
||||
retStats = append(retStats, v)
|
||||
}
|
||||
sort.Stable(asToSort(retStats))
|
||||
sort.Sort(asToSort(retStats))
|
||||
|
||||
return overall, retStats, nil
|
||||
|
||||
|
@ -302,7 +302,7 @@ func renderCommits(payload *githubRender, c *githubConfig) error {
|
|||
}
|
||||
}
|
||||
payload.HasAuthorStats = len(payload.AuthorStats) > 0
|
||||
sort.Stable(asToSort(payload.AuthorStats))
|
||||
sort.Sort(asToSort(payload.AuthorStats))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue