From a58848f18c6e768df6ca15fd591eaab772b9bb89 Mon Sep 17 00:00:00 2001 From: Law Zava Date: Mon, 7 Sep 2020 15:06:09 +0300 Subject: [PATCH] :bug: fixed env var readability bug --- internal/pkg/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } }