aboutsummaryrefslogtreecommitdiffstats
path: root/scalding/src/main/scala
diff options
context:
space:
mode:
authorEllen Spertus <ellen.spertus@gmail.com>2018-08-22 15:11:38 -0700
committerEllen Spertus <ellen.spertus@gmail.com>2018-08-22 15:11:38 -0700
commit6b401b34f189475efb84e72dafa2124ac50b5ee8 (patch)
tree7cadfce40b8e1873d95609bfeff41181ef5ac308 /scalding/src/main/scala
parent7a806a7841c911871aeb13fcb1eac41a108d1f6d (diff)
downloadsandcrawler-6b401b34f189475efb84e72dafa2124ac50b5ee8.tar.gz
sandcrawler-6b401b34f189475efb84e72dafa2124ac50b5ee8.zip
Fixed style violations.
Diffstat (limited to 'scalding/src/main/scala')
-rw-r--r--scalding/src/main/scala/sandcrawler/CrossrefScorable.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala
index 0431c63..ab33d03 100644
--- a/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala
+++ b/scalding/src/main/scala/sandcrawler/CrossrefScorable.scala
@@ -47,13 +47,15 @@ object CrossrefScorable {
val title = titles(0)
if (title == null || title.isEmpty || title.length > Scorable.MaxTitleLength) None else Some(title)
}
- } else None
+ } else {
+ None
+ }
}
def jsonToMapFeatures(json : String) : MapFeatures = {
Scorable.jsonToMap(json) match {
case None => MapFeatures(Scorable.NoSlug, json)
- case Some(map) =>
+ case Some(map) =>
mapToTitle(map) match {
case None => MapFeatures(Scorable.NoSlug, json)
case Some(title) => {