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

@@ -21,6 +21,9 @@ func (r *queryResolver) FindImage(ctx context.Context, id *string, checksum *str
}
image, err = qb.Find(idInt)
if err != nil {
return err
}
} else if checksum != nil {
image, err = qb.FindByChecksum(*checksum)
}