1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

Fix warning QF1003: could use tagged switch

This commit is contained in:
Stefan Haller
2025-06-29 10:39:21 +02:00
parent c7d0aaa786
commit 92093ce56a
2 changed files with 6 additions and 4 deletions

View File

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