ephraimbuddy commented on code in PR #68627:
URL: https://github.com/apache/airflow/pull/68627#discussion_r3420596669
##########
airflow-core/src/airflow/models/dagcode.py:
##########
@@ -190,4 +190,5 @@ def update_source_code(cls, dag_id: str, fileloc: str, *,
session: Session = NEW
if new_source_code_hash != latest_dagcode.source_code_hash:
latest_dagcode.source_code = new_source_code
latest_dagcode.source_code_hash = new_source_code_hash
- session.merge(latest_dagcode)
Review Comment:
This session.merge is redundant
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]