romsharon98 commented on PR #51828:
URL: https://github.com/apache/airflow/pull/51828#issuecomment-2990961319

   > @romsharon98 
   > 
   > 
   > 
   > Because `merge` mutates the first map you pass in and then returns that 
very same map.
   > 
   > `deepCopy` duplicates the map, and merge then modifies the copy.
   > 
   > 
   > 
   > I made a few changes to the code:
   > 
   > 
   > 
   > - Swapped the logic to use a *safer* `deepCopy` instead.
   > 
   > - Added a stricter test assertion to check the trailing `/`.
   
   Thanks for the clarification:)


-- 
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]

Reply via email to