Skip to content

Commit

Permalink
🐛 fixed env var readability bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lawzava committed Sep 7, 2020
1 parent a7b19b3 commit a58848f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit a58848f

Please # to comment.