Skip to content

Commit 4e0eb07

Browse files
Reformatted with another ruff version
1 parent c5402de commit 4e0eb07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sqlglot/transforms.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -926,9 +926,9 @@ def eliminate_join_marks(expression: exp.Expression) -> exp.Expression:
926926
if not left_join_table:
927927
continue
928928

929-
assert not (len(left_join_table) > 1), (
930-
"Cannot combine JOIN predicates from different tables"
931-
)
929+
assert not (
930+
len(left_join_table) > 1
931+
), "Cannot combine JOIN predicates from different tables"
932932

933933
for col in join_cols:
934934
col.set("join_mark", False)
@@ -958,9 +958,9 @@ def eliminate_join_marks(expression: exp.Expression) -> exp.Expression:
958958

959959
if query_from.alias_or_name in new_joins:
960960
only_old_joins = old_joins.keys() - new_joins.keys()
961-
assert len(only_old_joins) >= 1, (
962-
"Cannot determine which table to use in the new FROM clause"
963-
)
961+
assert (
962+
len(only_old_joins) >= 1
963+
), "Cannot determine which table to use in the new FROM clause"
964964

965965
new_from_name = list(only_old_joins)[0]
966966
query.set("from", exp.From(this=old_joins[new_from_name].this))

0 commit comments

Comments
 (0)