Skip to content

Commit

Permalink
Fixed warning - follow Scala paradigm for None handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cascala committed Apr 21, 2018
1 parent 3fb7477 commit 3db1ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/expr/FunF.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ trait FunMany extends Expr {
// Possible variable name
override def leadingVariable:Option[String] = {
//val lvs = this.elements.map( element => element.leadingVariable ).filter( pv => pv != None ).map( {case Some( s ) => s })
val lvs = this.elements.map( element => element.leadingVariable ).map( {
val lvs = this.elements.map( element => element.leadingVariable ).filter( pv => pv != None ).map( {
case Some( s ) => s
case _ => ""
} )
Expand Down

0 comments on commit 3db1ba4

Please sign in to comment.