fix: Fix ChainedConverter logging when there are no intermediates

This commit is contained in:
Joachim Van Herwegen
2021-06-08 10:57:19 +02:00
parent e3c5b39752
commit 6855d8b81d

View File

@@ -143,7 +143,7 @@ export class ChainedConverter extends RepresentationConverter {
}
const { path } = match;
this.logger.debug(`Converting ${match.inType} -> ${path.intermediateTypes.join(' -> ')} -> ${match.outType}.`);
this.logger.debug(`Converting ${match.inType} -> ${[ ...path.intermediateTypes, match.outType ].join(' -> ')}.`);
const args = { ...input };
for (let i = 0; i < path.converters.length - 1; ++i) {