Skip to content

Commit

Permalink
fix unnecessary indirect return
Browse files Browse the repository at this point in the history
  • Loading branch information
Skgland committed Mar 14, 2022
1 parent 8c963c2 commit a57474d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/klighd-core/src/views.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ export class KNodeView implements IView {
const titles = ctx.exitTitleScope()
const childRenderings = ctx.renderChildren(node)
ctx.popEffectiveZoom()
const ret = <g><g transform={transformation}>
return <g><g transform={transformation}>
{titles}
{childRenderings}
</g></g>
return ret
}
if (interactiveNodes) {
result.push(interactiveNodes)
Expand All @@ -238,8 +237,7 @@ export class KNodeView implements IView {
result.push(...ctx.exitTitleScope())
ctx.positions.pop()
ctx.popEffectiveZoom()
const ret =<g><g transform={transformation}>{...result}</g></g>
return ret
return <g><g transform={transformation}>{...result}</g></g>
}
}

Expand Down

0 comments on commit a57474d

Please sign in to comment.