Avoid unnecessary option wrapping
parent
dbd1bb09bf
commit
741c7d3ee3
|
@ -75,7 +75,7 @@ object ModPresets {
|
|||
val cleanRest = rest.dropWhile(_.isEmpty)
|
||||
for {
|
||||
name <- cleanRest.headOption
|
||||
text <- cleanRest.tail.some
|
||||
text = cleanRest.tail
|
||||
} yield ModPreset(
|
||||
name,
|
||||
text.dropWhile(_.isEmpty) mkString "\n",
|
||||
|
|
Loading…
Reference in New Issue