srowen commented on a change in pull request #24857: [MINOR][CORE] Remove an
unused variable in SparkSubmt.scala
URL: https://github.com/apache/spark/pull/24857#discussion_r293440862
##########
File path:
core/src/main/scala/org/apache/spark/memory/ExecutionMemoryPool.scala
##########
@@ -151,7 +151,7 @@ private[memory] class ExecutionMemoryPool(
*/
def releaseMemory(numBytes: Long, taskAttemptId: Long): Unit =
lock.synchronized {
val curMem = memoryForTask.getOrElse(taskAttemptId, 0L)
- var memoryToFree = if (curMem < numBytes) {
+ val memoryToFree = if (curMem < numBytes) {
Review comment:
@dongjoon-hyun I don't so much mind it if this is a comprehensive pass at a
few different types of code cleanup
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]