summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-03-12 17:14:02 +0000
committerPaul Phillips <paulp@improving.org>2009-03-12 17:14:02 +0000
commit8e28858bd1f1c4e8a4df03b87f51c362bc8e449e (patch)
tree32e3872ff7fa9c72e8b96496e516a6e61ce87931 /src
parent5af0e1461b7562798c3d7c3fcdce346107f5af0b (diff)
downloadscala-8e28858bd1f1c4e8a4df03b87f51c362bc8e449e.tar.gz
scala-8e28858bd1f1c4e8a4df03b87f51c362bc8e449e.tar.bz2
scala-8e28858bd1f1c4e8a4df03b87f51c362bc8e449e.zip
Fixing accidental drop of .
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/Settings.scala6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/compiler/scala/tools/nsc/Settings.scala b/src/compiler/scala/tools/nsc/Settings.scala
index 39451acd32..b60f54bb79 100644
--- a/src/compiler/scala/tools/nsc/Settings.scala
+++ b/src/compiler/scala/tools/nsc/Settings.scala
@@ -16,11 +16,7 @@ class Settings(error: String => Unit) {
private var allsettings: List[Setting] = List()
// optionizes a system property
- private def sysprop(name: String): Option[String] =
- System.getProperty(name) match {
- case null | "" => None
- case x => Some(x)
- }
+ private def sysprop(name: String): Option[String] = onull(System.getProperty(name))
// given any number of possible path segments, flattens down to a
// :-separated style path