Skip to content

Commit

Permalink
cleanup map
Browse files Browse the repository at this point in the history
  • Loading branch information
wb14123 committed Sep 16, 2024
1 parent 619118a commit fb8a223
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions runner/src/mill/runner/MillMain.scala
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,7 @@ object MillMain {
.map(availableCores - _)
case Some(n) => n.toIntOption
.toRight(err("Failed to find a int number"))
}).flatMap {
case x if x < 1 => Right(1)
case x => Right(x)
}
}).map { x => if (x < 1) 1 else x }
}

def getLogger(
Expand Down

0 comments on commit fb8a223

Please sign in to comment.