diff --git a/internal/pkg/config/config.go b/internal/pkg/config/config.go index d1f6690..f6a109b 100644 --- a/internal/pkg/config/config.go +++ b/internal/pkg/config/config.go @@ -77,10 +77,10 @@ func New(log *logger.Log) (*Config, error) { } if config.StorageFilePath == "" { - storageFileLocation = configFileDefaultLocation + config.StorageFilePath = configFileDefaultLocation if e := os.Getenv(storageFilePathEnvironmentVariable); e != "" { - storageFileLocation = e + config.StorageFilePath = e } }