fix: dont display non-existant release notes if no version
This commit is contained in:
parent
379e01d855
commit
64e223a810
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue