Skip to content

Commit 3d2fac4

Browse files
author
Dhruve Ashar
committed
Use short circuit operator
1 parent b76147c commit 3d2fac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/ExecutorAllocationClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ private[spark] trait ExecutorAllocationClient {
6464
*/
6565
def killExecutor(executorId: String): Boolean = {
6666
val killedExecutors = killExecutors(Seq(executorId))
67-
killedExecutors.nonEmpty & killedExecutors(0).equals(executorId)
67+
killedExecutors.nonEmpty && killedExecutors(0).equals(executorId)
6868
}
6969
}

0 commit comments

Comments
 (0)