summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamburville <samburville@protonmail.com>2021-09-29 13:18:25 +0100
committerJesse Duffield <jessedduffield@gmail.com>2021-09-30 01:26:05 +1000
commitc4552aad2837a6be9d7c94bb79c20709dc975e33 (patch)
tree8ccc6d2426046b0de34e4a95434a68ab02fa448b
parent5c57c973d64cff21cd1b7e2912b0daee8835fb06 (diff)
Use simpler short variable declaration
Co-authored-by: Jesse Duffield <jessedduffield@gmail.com>
-rw-r--r--pkg/theme/theme.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/theme/theme.go b/pkg/theme/theme.go
index ba2848254..6c23bdf6e 100644
--- a/pkg/theme/theme.go
+++ b/pkg/theme/theme.go
@@ -48,8 +48,8 @@ func UpdateTheme(themeConfig config.ThemeConfig) {
SelectedLineBgColor = GetTextStyle(themeConfig.SelectedLineBgColor, true)
SelectedRangeBgColor = GetTextStyle(themeConfig.SelectedRangeBgColor, true)
- var cherryPickedCommitBgTextStyle = GetTextStyle(themeConfig.CherryPickedCommitBgColor, true)
- var cherryPickedCommitFgTextStyle = GetTextStyle(themeConfig.CherryPickedCommitFgColor, false)
+ cherryPickedCommitBgTextStyle := GetTextStyle(themeConfig.CherryPickedCommitBgColor, true)
+ cherryPickedCommitFgTextStyle := GetTextStyle(themeConfig.CherryPickedCommitFgColor, false)
CherryPickedCommitTextStyle = cherryPickedCommitBgTextStyle.MergeStyle(cherryPickedCommitFgTextStyle)
GocuiSelectedLineBgColor = GetGocuiStyle(themeConfig.SelectedLineBgColor)