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 ignoreResult[A](f: => A): Unit =
|
||||
f; ()
|
||||
def ignoreResult[A](f: => A): Unit = {
|
||||
val _ = f
|
||||
()
|
||||
}
|
||||
|
||||
lazy val isMac: Boolean =
|
||||
System.getProperty("os.name").toLowerCase(Locale.ENGLISH).contains("mac")
|
||||
|
|
|
|||
Loading…
Reference in New Issue