diff --git a/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala b/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala index 28b08305b..9de537a6d 100644 --- a/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala +++ b/spark/src/main/scala/org/apache/comet/shims/ShimQueryPlanSerde.scala @@ -59,9 +59,7 @@ trait ShimQueryPlanSerde { if (evalMode.isEmpty) { true } else { - // scalastyle:off caselocale - evalMode.head.toString.toLowerCase == "legacy" - // scalastyle:on caselocale + "legacy".equalsIgnoreCase(evalMode.head.toString) } }