catalog-backend: review feedback, reduce scope of handled

Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-04-20 11:15:47 +02:00
parent cf101c539c
commit b2adf03b58
@@ -210,7 +210,7 @@ export class DefaultCatalogProcessingOrchestrator
for (const processor of this.options.processors) {
if (processor.readLocation) {
try {
handled = await processor.readLocation(
const read = await processor.readLocation(
{
type,
target,
@@ -220,7 +220,7 @@ export class DefaultCatalogProcessingOrchestrator
emitter.emit,
this.options.parser,
);
if (handled) {
if (read) {
break;
}
} catch (e) {