@@ -117,7 +117,7 @@ func (c *SystemConfig) UserConfig(ctx context.Context) (*SystemConfig, error) {
117117 if err != nil {
118118 return & SystemConfig {}, err
119119 }
120- var path string = filepath .Join (dir , configFileName )
120+ var path = filepath .Join (dir , configFileName )
121121
122122 if _ , err := c .fs .Stat (path ); os .IsNotExist (err ) {
123123 return & config , err
@@ -424,7 +424,7 @@ func (c *SystemConfig) initializeConfigFiles(ctx context.Context, dir string) er
424424 defer span .Finish ()
425425
426426 // ensure the credentials.json file exists
427- var credentialsPath string = filepath .Join (dir , credentialsFileName )
427+ var credentialsPath = filepath .Join (dir , credentialsFileName )
428428 _ , err := c .fs .Stat (credentialsPath )
429429 if os .IsNotExist (err ) {
430430 // create the credentials file because it does not exist
@@ -435,7 +435,7 @@ func (c *SystemConfig) initializeConfigFiles(ctx context.Context, dir string) er
435435 }
436436
437437 // ensure the config.json file exists
438- var configPath string = filepath .Join (dir , configFileName )
438+ var configPath = filepath .Join (dir , configFileName )
439439 _ , err = c .fs .Stat (configPath )
440440 if os .IsNotExist (err ) {
441441 err = c .writeConfigFile (configPath , []byte ("{}\n " ))
@@ -445,7 +445,7 @@ func (c *SystemConfig) initializeConfigFiles(ctx context.Context, dir string) er
445445 }
446446
447447 // ensure the logs folder exists
448- var logsPath string = filepath .Join (dir , logsFolderName )
448+ var logsPath = filepath .Join (dir , logsFolderName )
449449 _ , err = c .fs .Stat (logsPath )
450450 if os .IsNotExist (err ) {
451451 // create the logs folder because it does not exist
0 commit comments