GitHub user wangjiaochun opened a pull request: https://github.com/apache/spark/pull/23247
[SPARK-26294][CORE]Delete Unnecessary If statement ## What changes were proposed in this pull request? Delete unnecessary If statement, because it Impossible execution when records less than or equal to zero.it is only execution when records begin zero. ## How was this patch tested? Existing tests (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) (If this patch involves UI changes, please attach a screenshot; otherwise, remove this) Please review http://spark.apache.org/contributing.html before opening a pull request. You can merge this pull request into a Git repository by running: $ git pull https://github.com/wangjiaochun/spark inMemSorter Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/23247.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #23247 ---- commit d5aea03764159914942eac2d3e5565ee9862424f Author: 10087686 <wang.jiaochun@...> Date: 2018-12-06T11:38:59Z Delete Unnecessary If statement ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org