mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
update linters
This commit is contained in:
@@ -19,8 +19,10 @@ type pipeSetCacheKey struct {
|
||||
commitCount int
|
||||
}
|
||||
|
||||
var pipeSetCache = make(map[pipeSetCacheKey][][]*graph.Pipe)
|
||||
var mutex sync.Mutex
|
||||
var (
|
||||
pipeSetCache = make(map[pipeSetCacheKey][][]*graph.Pipe)
|
||||
mutex sync.Mutex
|
||||
)
|
||||
|
||||
type bisectBounds struct {
|
||||
newIndex int
|
||||
@@ -226,6 +228,8 @@ func getBisectStatusText(bisectStatus BisectStatus, bisectInfo *git_commands.Bis
|
||||
return style.Sprintf("<-- skipped")
|
||||
case BisectStatusCandidate:
|
||||
return style.Sprintf("?")
|
||||
case BisectStatusNone:
|
||||
return ""
|
||||
}
|
||||
|
||||
return ""
|
||||
|
||||
@@ -12,13 +12,17 @@ import (
|
||||
"github.com/jesseduffield/lazygit/pkg/utils"
|
||||
)
|
||||
|
||||
const EXPANDED_ARROW = "▼"
|
||||
const COLLAPSED_ARROW = "►"
|
||||
const (
|
||||
EXPANDED_ARROW = "▼"
|
||||
COLLAPSED_ARROW = "►"
|
||||
)
|
||||
|
||||
const INNER_ITEM = "├─ "
|
||||
const LAST_ITEM = "└─ "
|
||||
const NESTED = "│ "
|
||||
const NOTHING = " "
|
||||
const (
|
||||
INNER_ITEM = "├─ "
|
||||
LAST_ITEM = "└─ "
|
||||
NESTED = "│ "
|
||||
NOTHING = " "
|
||||
)
|
||||
|
||||
func RenderFileTree(
|
||||
tree filetree.IFileTree,
|
||||
|
||||
@@ -8,8 +8,10 @@ import (
|
||||
"github.com/jesseduffield/lazygit/pkg/gui/style"
|
||||
)
|
||||
|
||||
const MergeSymbol = '⏣'
|
||||
const CommitSymbol = '◯'
|
||||
const (
|
||||
MergeSymbol = '⏣'
|
||||
CommitSymbol = '◯'
|
||||
)
|
||||
|
||||
type cellType int
|
||||
|
||||
@@ -66,8 +68,10 @@ type rgbCacheKey struct {
|
||||
str string
|
||||
}
|
||||
|
||||
var rgbCache = make(map[rgbCacheKey]string)
|
||||
var rgbCacheMutex sync.RWMutex
|
||||
var (
|
||||
rgbCache = make(map[rgbCacheKey]string)
|
||||
rgbCacheMutex sync.RWMutex
|
||||
)
|
||||
|
||||
func cachedSprint(style style.TextStyle, str string) string {
|
||||
switch v := style.Style.(type) {
|
||||
|
||||
Reference in New Issue
Block a user