jiminoc/goose — pull request #30 by dlarochelle (2011-11-15 20:33:54+00:00)
Title: Get rid of unnecessary '({' and simplify the code.

I've noticed that ContentExtractor.scala has a number of ({ ... }) blocks that don't need to be separate blocks. (If these blocks are necessary for some reason, please let me know so I can better understand Goose's code.)

I've removed the '({' and simplified the code. For example, I've changed

if (cnt >= 0) {
boostScore = ((1.0 / startingBoost) * 50).asInstanceOf[Float]
({
startingBoost += 1;
startingBoost
})
}

to:

if (cnt >= 0) {
boostScore = ((1.0 / startingBoost) * 50).asInstanceOf[Float]
startingBoost += 1;
}