refactor: code style / error handling improvements

This commit is contained in:
3wc
2021-11-22 20:29:27 +02:00
parent 8635922b9f
commit d0a30f6b7b
2 changed files with 33 additions and 19 deletions

View File

@ -136,7 +136,7 @@ A new catalogue copy can be published to the recipes repository by passing the
isClean, err := gitPkg.IsClean(rm.Name)
if err != nil {
return
logrus.Fatal(err)
}
if !isClean {
@ -175,6 +175,9 @@ A new catalogue copy can be published to the recipes repository by passing the
}
features, category, err := catalogue.GetRecipeFeaturesAndCategory(recipeMeta.Name)
if err != nil {
logrus.Fatal(err)
}
catl[recipeMeta.Name] = catalogue.RecipeMeta{
Name: recipeMeta.Name,