changes to avoid reassignment to val

This commit is contained in:
Miriam Baglioni 2021-06-07 17:50:37 +02:00
parent f33521d338
commit 8d2e086e48
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@ object SparkConvertORCIDToOAF {
val logger: Logger = LoggerFactory.getLogger(SparkConvertORCIDToOAF.getClass)
def fixORCIDItem(item :ORCIDItem):ORCIDItem = {
item.authors = item.authors.groupBy(_.oid).map(_._2.head)
item
new ORCIDItem(item.doi, item.authors.groupBy(_.oid).map(_._2.head).toList)
}