mirror of https://github.com/sbt/sbt.git
ignore discarded Unit
This commit is contained in:
parent
b6510a1c1c
commit
99385881f0
|
|
@ -39,8 +39,10 @@ object Util {
|
||||||
|
|
||||||
def quoteIfKeyword(s: String): String = if (ScalaKeywords.values(s)) s"`${s}`" else s
|
def quoteIfKeyword(s: String): String = if (ScalaKeywords.values(s)) s"`${s}`" else s
|
||||||
|
|
||||||
def ignoreResult[A](f: => A): Unit =
|
def ignoreResult[A](f: => A): Unit = {
|
||||||
f; ()
|
val _ = f
|
||||||
|
()
|
||||||
|
}
|
||||||
|
|
||||||
lazy val isMac: Boolean =
|
lazy val isMac: Boolean =
|
||||||
System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("mac")
|
System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("mac")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue