mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 01:49:57 +02:00
Fix a "discarded non-Unit value" warning in FileExamplesTest
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user