fix: dont lookup release notes if no version passed
This commit is contained in:
parent
64e223a810
commit
65feda7f1d
|
@ -250,6 +250,10 @@ func NewVersionOverview(app config.App, currentVersion, newVersion, releaseNotes
|
||||||
|
|
||||||
// GetReleaseNotes prints release notes for a recipe version
|
// GetReleaseNotes prints release notes for a recipe version
|
||||||
func GetReleaseNotes(recipeName, version string) (string, error) {
|
func GetReleaseNotes(recipeName, version string) (string, error) {
|
||||||
|
if version == "" {
|
||||||
|
return "", nil
|
||||||
|
}
|
||||||
|
|
||||||
fpath := path.Join(config.RECIPES_DIR, recipeName, "release", version)
|
fpath := path.Join(config.RECIPES_DIR, recipeName, "release", version)
|
||||||
|
|
||||||
if _, err := os.Stat(fpath); !os.IsNotExist(err) {
|
if _, err := os.Stat(fpath); !os.IsNotExist(err) {
|
||||||
|
|
Loading…
Reference in New Issue