Skip to content

Commit 63d04fd

Browse files
committed
remove legacy errors code and checks
1 parent 8ae87c8 commit 63d04fd

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

daemon/lib/recipe.go

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,8 @@ func ParseYamlRecipeV1(data []byte) (Recipe, error) {
3636
output := formatOutputImage(recipeYamlV1.OutputFormat, input)
3737
wish, err := CreateWish(inputImage, output, recipeYamlV1.CVMFSRepo, "", recipeYamlV1.User)
3838
if err != nil {
39-
switch err.(type) {
40-
case *WishAlreadyInDBError:
41-
recipe.Wishes = append(recipe.Wishes, wish)
42-
default:
43-
LogE(err).Warning("Error in creating the wish")
44-
continue
45-
}
39+
LogE(err).Warning("Error in creating the wish")
40+
continue
4641
} else {
4742
recipe.Wishes = append(recipe.Wishes, wish)
4843
}

daemon/lib/wish.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ type WishFriendly struct {
2323
UserOutput string
2424
}
2525

26-
type WishAlreadyInDBError struct{}
27-
28-
func (e *WishAlreadyInDBError) Error() string {
29-
return "Wish is already in the database"
30-
}
31-
3226
func CreateWish(inputImage, outputImage, cvmfsRepo, userInput, userOutput string) (wish WishFriendly, err error) {
3327

3428
inputImg, err := ParseImage(inputImage)

0 commit comments

Comments
 (0)