Skip to content

Commit 1131351

Browse files
FynesFynes
authored andcommitted
formatting
1 parent 5e2ca58 commit 1131351

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sqlmesh/core/macros.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,9 +1114,8 @@ def safe_add(_: MacroEvaluator, *fields: exp.Expression) -> exp.Case:
11141114
return (
11151115
exp.Case()
11161116
.when(exp.and_(*(field.is_(exp.null()) for field in fields)), exp.null())
1117-
# type: ignore
11181117
.else_(reduce(lambda a, b: a + b, [exp.func("COALESCE", field, 0) for field in fields]))
1119-
)
1118+
) # type: ignore
11201119

11211120

11221121
@macro()

0 commit comments

Comments
 (0)