mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix git ordering
This is due to us sorting It doesn't look like there is a need to sort here, so remove it
This commit is contained in:
parent
bc0d79df7b
commit
e213e6b337
@ -3,7 +3,6 @@ package git
|
||||
import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/gdamore/tcell"
|
||||
@ -79,9 +78,6 @@ func (widget *Widget) Refresh() {
|
||||
repoPaths := utils.ToStrs(widget.settings.repositories)
|
||||
|
||||
widget.GitRepos = widget.gitRepos(repoPaths)
|
||||
sort.Slice(widget.GitRepos, func(i, j int) bool {
|
||||
return widget.GitRepos[i].Path < widget.GitRepos[j].Path
|
||||
})
|
||||
|
||||
widget.display()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user