1
0
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:
Sean Smith 2019-09-05 08:02:12 -04:00
parent bc0d79df7b
commit e213e6b337

View File

@ -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()
}