-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert missing trailing commas #19
base: master
Are you sure you want to change the base?
Conversation
@@ -63,7 +63,7 @@ private[prediction] trait StatsMetricHelper[EI, Q, P, A] { | |||
evalDataSet.map { | |||
case (_, qpaRDD) => | |||
qpaRDD.map { case (q, p, a) => calculate(q, p, a) } | |||
} | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just weird 😕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -52,7 +52,7 @@ object BinaryVectorizer { | |||
.filter(e => properties.contains(e._1)) | |||
.distinct | |||
.collect | |||
.zipWithIndex: _* | |||
.zipWithIndex: _*, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is not necessary, since there won't be more args
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, when using the vargargs-expansion it doesn't make sense. Good find.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the error case, when you've accidentally added or uncommented an additional arg, the error message with the comma might be slightly better.
No description provided.