Fix: unhandled errors (#1419)

As these errors where not explicitly ignored with _, I made changes to make sure they bubble up.
This commit is contained in:
EnameEtavir
2021-05-25 10:40:51 +02:00
committed by GitHub
parent 65baf46c40
commit d6ada23616
8 changed files with 37 additions and 9 deletions

View File

@@ -406,6 +406,9 @@ func (r *mutationResolver) ScenesDestroy(ctx context.Context, input models.Scene
sceneID, _ := strconv.Atoi(id)
scene, err := qb.Find(sceneID)
if err != nil {
return err
}
if scene != nil {
scenes = append(scenes, scene)
}