fix: dont display non-existant release notes if no version

This commit is contained in:
decentral1se 2022-01-03 16:13:42 +01:00
parent 379e01d855
commit 64e223a810
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ func NewVersionOverview(app config.App, currentVersion, newVersion, releaseNotes
} }
} }
if releaseNotes != "" { if releaseNotes != "" && newVersion != "" {
fmt.Println() fmt.Println()
fmt.Println(fmt.Sprintf("%s release notes:\n\n%s", newVersion, releaseNotes)) fmt.Println(fmt.Sprintf("%s release notes:\n\n%s", newVersion, releaseNotes))
} else { } else {