Github user dbolshak commented on a diff in the pull request: https://github.com/apache/spark/pull/17458#discussion_r108527691 --- Diff: core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala --- @@ -103,7 +103,7 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") { val taskSortColumn = Option(parameterTaskSortColumn).map { sortColumn => UIUtils.decodeURLParameter(sortColumn) }.getOrElse("Index") - val taskSortDesc = Option(parameterTaskSortDesc).map(_.toBoolean).getOrElse(false) + val taskSortDesc = Option(parameterTaskSortDesc).exists(_.toBoolean) --- End diff -- There is no `Option.contains` call any more, it was in another place.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org