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
|
@ -168,7 +168,7 @@ func getIssues(client *gogithub.Client, config *githubConfig) ([]githubIssue, er
|
|||
|
||||
}
|
||||
|
||||
sort.Stable(issuesToSort(ret))
|
||||
sort.Sort(issuesToSort(ret))
|
||||
|
||||
return ret, nil
|
||||
|
||||
|
@ -212,7 +212,7 @@ func refreshIssues(gr *githubRender, config *githubConfig, client *gogithub.Clie
|
|||
gr.SharedLabels = append(gr.SharedLabels, thisLab)
|
||||
}
|
||||
}
|
||||
sort.Stable(sharedLabelsSort(gr.SharedLabels))
|
||||
sort.Sort(sharedLabelsSort(gr.SharedLabels))
|
||||
gr.HasSharedLabels = len(gr.SharedLabels) > 0
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue