mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-27 22:38:09 +02:00
Fix warning QF1003: could use tagged switch
This commit is contained in:
@@ -185,9 +185,10 @@ func getFileLine(
|
||||
func formatFileStatus(file *models.File, restColor style.TextStyle) string {
|
||||
firstChar := file.ShortStatus[0:1]
|
||||
firstCharCl := style.FgGreen
|
||||
if firstChar == "?" {
|
||||
switch firstChar {
|
||||
case "?":
|
||||
firstCharCl = theme.UnstagedChangesColor
|
||||
} else if firstChar == " " {
|
||||
case " ":
|
||||
firstCharCl = restColor
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user