Fix curly brackets

This is the final sonar related issue with scala.