NihalJain commented on code in PR #120:
URL: https://github.com/apache/hbase-connectors/pull/120#discussion_r1290939901
##########
spark/hbase-spark/src/main/scala/org/apache/hadoop/hbase/spark/HBaseConnectionCache.scala:
##########
@@ -90,14 +90,14 @@ private[spark] object HBaseConnectionCache extends Logging {
def performHousekeeping(forceClean: Boolean) = {
val tsNow: Long = System.currentTimeMillis()
connectionMap.synchronized {
- connectionMap.foreach {
- x => {
- if(x._2.refCount < 0) {
+ connectionMap.foreach { x =>
+ {
Review Comment:
Could set `newlines.beforeCurlyLambdaParams = true` to prevent this. Let me
add this in our scalafmt. Let me if you want this as an addendum fix for pr-119
or part of this PR itself. For now added as 2nd commit along with spotless
re-run with change.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]