From 82ea3aae82713c4d2d2ac5dec722739431abd120 Mon Sep 17 00:00:00 2001 From: djoh Date: Tue, 18 Jun 2024 22:09:53 +0300 Subject: [PATCH] chore: release 2.6.2 --- CHANGELOG.md | 6 ++++++ config/config.go | 4 ++-- constants/constants.go | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88dfc1f..b8e1eec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 2.6.2 (2024-06-18) + +- Fixed config loading + +**Full Changelog**: https://github.com/djohts/tpc-truckersmp/compare/v2.6.1...v2.6.2 + ## 2.6.1 (2024-06-17) forgot to update version constant diff --git a/config/config.go b/config/config.go index 89c2a3a..d09e4fb 100644 --- a/config/config.go +++ b/config/config.go @@ -49,11 +49,11 @@ func Init() error { config = &Configuration{} defaults.Set(config) if file, err := os.ReadFile(getConfigPath()); err != nil { + return err + } else { if err := yaml.Unmarshal(file, &config); err != nil { return err } - } else { - return err } WriteToDisk() diff --git a/constants/constants.go b/constants/constants.go index bd636c6..dd9e6b9 100644 --- a/constants/constants.go +++ b/constants/constants.go @@ -1,7 +1,7 @@ package constants const ( - APP_VERSION = `2.6.1` + APP_VERSION = `2.6.2` ETS = `Euro Truck Simulator 2` ATS = `American Truck Simulator`