Skip to content

Commit 1c80707

Browse files
committed
remove unneeded variables
1 parent bd895ba commit 1c80707

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sqlmesh/core/linter/rules/builtin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ def check_model(self, model: Model) -> t.Optional[t.List[RuleViolation]]:
283283
this_model_cron_next = model.cron_next(placeholder_start_date)
284284

285285
violations = []
286-
has_valid_upstream = False
287286
for upstream_model_name in model.depends_on:
288287
upstream_model = self.context.get_model(upstream_model_name)
289288

@@ -307,10 +306,7 @@ def check_model(self, model: Model) -> t.Optional[t.List[RuleViolation]]:
307306
)
308307
)
309308
elif upstream_model_cron_next <= this_model_cron_next:
310-
has_valid_upstream = True
311-
break
312-
if has_valid_upstream:
313-
return None
309+
return None
314310
return violations
315311

316312

0 commit comments

Comments
 (0)