chore: remove redundant if statement

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-03-01 09:23:24 +01:00
parent 4061baea23
commit bd630612b7
@@ -100,9 +100,7 @@ export function createCatalogRegisterAction(options: {
if (result.entities.length >= 1) {
const { kind, name, namespace } = getEntityName(result.entities[0]);
ctx.output('entityRef', `${kind}:${namespace}/${name}`);
if (catalogInfoUrl) {
ctx.output('catalogInfoUrl', catalogInfoUrl);
}
ctx.output('catalogInfoUrl', catalogInfoUrl);
}
},
});