mirror of https://github.com/sbt/sbt.git
Fix a "discarded non-Unit value" warning in FileExamplesTest
This commit is contained in:
parent
78f4f56d1c
commit
6f52437e95
|
|
@ -9,6 +9,7 @@ package sbt.internal.util
|
|||
package complete
|
||||
|
||||
import java.io.File
|
||||
import org.scalatest.Assertion
|
||||
import sbt.io.IO
|
||||
|
||||
class FileExamplesTest extends UnitSpec {
|
||||
|
|
@ -57,7 +58,8 @@ class FileExamplesTest extends UnitSpec {
|
|||
}
|
||||
|
||||
def withDirectoryStructure[A](withCompletionPrefix: String = "")(
|
||||
thunk: DirectoryStructure => A): Unit = {
|
||||
thunk: DirectoryStructure => Assertion
|
||||
): Assertion = {
|
||||
IO.withTemporaryDirectory { tempDir =>
|
||||
val ds = new DirectoryStructure(withCompletionPrefix)
|
||||
ds.createSampleDirStructure(tempDir)
|
||||
|
|
|
|||
Loading…
Reference in New Issue