LuciferYang commented on code in PR #43125: URL: https://github.com/apache/spark/pull/43125#discussion_r1337508102
########## launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java: ########## @@ -230,17 +230,11 @@ String getScalaVersion() { return scala; } String sparkHome = getSparkHome(); - File scala212 = new File(sparkHome, "launcher/target/scala-2.12"); File scala213 = new File(sparkHome, "launcher/target/scala-2.13"); - checkState(!scala212.isDirectory() || !scala213.isDirectory(), + checkState(!scala213.isDirectory(), Review Comment: ~Is it not necessary to check `scala213.isDirectory()`?~ ########## launcher/src/main/java/org/apache/spark/launcher/AbstractCommandBuilder.java: ########## @@ -230,17 +230,11 @@ String getScalaVersion() { return scala; } String sparkHome = getSparkHome(); - File scala212 = new File(sparkHome, "launcher/target/scala-2.12"); File scala213 = new File(sparkHome, "launcher/target/scala-2.13"); - checkState(!scala212.isDirectory() || !scala213.isDirectory(), + checkState(!scala213.isDirectory(), Review Comment: OK -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org