Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lint
  • Loading branch information
zhengruifeng committed Dec 19, 2017
commit e05cc267d9246e6ba662bfb882bfb5864600fb2b
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class BisectingKMeans private (
level += 1
}
if (preIndices != null) preIndices.unpersist(blocking = false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we usually write "blocking ="? there's only one argument.
I'd use braces and put the body on the next line too.

if(indices != null) indices.unpersist(blocking = false)
if (indices != null) indices.unpersist(blocking = false)
norms.unpersist(blocking = false)
val clusters = activeClusters ++ inactiveClusters
val root = buildTree(clusters)
Expand Down