From a57474de9a43124b87f5e48b9e0ee1c8bc688a50 Mon Sep 17 00:00:00 2001 From: Skgland Date: Sun, 13 Mar 2022 00:35:58 +0100 Subject: [PATCH] fix unnecessary indirect return --- packages/klighd-core/src/views.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/klighd-core/src/views.tsx b/packages/klighd-core/src/views.tsx index 845a2d65..c22b77cb 100644 --- a/packages/klighd-core/src/views.tsx +++ b/packages/klighd-core/src/views.tsx @@ -217,11 +217,10 @@ export class KNodeView implements IView { const titles = ctx.exitTitleScope() const childRenderings = ctx.renderChildren(node) ctx.popEffectiveZoom() - const ret = + return {titles} {childRenderings} - return ret } if (interactiveNodes) { result.push(interactiveNodes) @@ -238,8 +237,7 @@ export class KNodeView implements IView { result.push(...ctx.exitTitleScope()) ctx.positions.pop() ctx.popEffectiveZoom() - const ret ={...result} - return ret + return {...result} } }