From 7d495573ab3ff02249df774c7238ede4e3016e23 Mon Sep 17 00:00:00 2001 From: Rhydian Jenkins Date: Fri, 6 May 2022 23:00:44 +0100 Subject: [PATCH] Bug fix - unused name param --- pkg/config/app_config.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index d041da61c..2d80c309b 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -50,7 +50,15 @@ type AppConfigurer interface { } // NewAppConfig makes a new app config -func NewAppConfig(name, version, commit, date string, buildSource string, debuggingFlag bool, tempDir string) (*AppConfig, error) { +func NewAppConfig( + name string, + version, + commit, + date string, + buildSource string, + debuggingFlag bool, + tempDir string, +) (*AppConfig, error) { configDir, err := findOrCreateConfigDir() if err != nil && !os.IsPermission(err) { return nil, err @@ -81,7 +89,7 @@ func NewAppConfig(name, version, commit, date string, buildSource string, debugg } appConfig := &AppConfig{ - Name: "lazygit", + Name: name, Version: version, Commit: commit, BuildDate: date,