bjornjorgensen opened a new pull request, #40759: URL: https://github.com/apache/spark/pull/40759
### What changes were proposed in this pull request? This PR aims to simplify the code by merging nested if statements into single if statements using the `and` operator. The changes do not affect the functionality of the code, but they improve readability and maintainability. There are 7 of this according to [Sonarcloud](https://sonarcloud.io/project/issues?languages=py&resolved=false&rules=python%3AS1066&id=spark-python&open=AYQdnXXBRrJbVxW9ZDpw). And this PR fix them all. ### Why are the changes needed? Improve readability and maintainability. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
