Skip to content

Commit

Permalink
Lowercase platform names
Browse files Browse the repository at this point in the history
  • Loading branch information
Duhemm committed Jun 7, 2018
1 parent f3d91ba commit ecb27bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions config/src/main/scala/bloop/config/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ object Config {
object Platform {
private[bloop] val default: Platform = JVM

case object JS extends Platform("JS")
case object JVM extends Platform("JVM")
case object Native extends Platform("Native")
case object JS extends Platform("js")
case object JVM extends Platform("jvm")
case object Native extends Platform("native")

def apply(platform: String): Platform = platform match {
def apply(platform: String): Platform = platform.toLowerCase match {
case JS.name => JS
case JVM.name => JVM
case Native.name => Native
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> bloopInstall
> jsProject/check JS
> jsProject/check js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
> bloopInstall
> nativeProject/check Native
> nativeProject/check native

0 comments on commit ecb27bb

Please sign in to comment.