From cc449f51868b39323807f7accd1f8bd19d5268db Mon Sep 17 00:00:00 2001 From: Ivan Larin Date: Mon, 12 Feb 2024 18:37:54 +0300 Subject: [PATCH] style: simplify expression --- edgeql_qb/render/with_expr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edgeql_qb/render/with_expr.py b/edgeql_qb/render/with_expr.py index ab33048..5ad049a 100644 --- a/edgeql_qb/render/with_expr.py +++ b/edgeql_qb/render/with_expr.py @@ -60,8 +60,8 @@ def inner(rendered_with: RenderedQuery) -> RenderedQuery: empty = RenderedQuery() return ( combine_many_renderers(rendered_with, space) - if (module or expressions) - else (empty if (not module and not expressions) else space) + if module or expressions else space + if module and expressions else empty ) return inner