fix compiler errors

This commit is contained in:
John Estropia
2019-01-31 16:50:43 +09:00
parent 9239370793
commit 41902fee2e
76 changed files with 140 additions and 151 deletions

View File

@@ -303,8 +303,8 @@ final class TransactionTests: BaseTestCase {
do {
let createExpectation = self.expectation(description: "create")
let dataPrepared: Void? = try? stack.perform(
synchronous: { (transaction) in
try stack.perform(
synchronous: { (transaction) -> Void in
let object = transaction.create(Into<TestEntity1>())
object.testEntityID = NSNumber(value: 1)
@@ -313,10 +313,7 @@ final class TransactionTests: BaseTestCase {
object.testDate = testDate
}
)
if dataPrepared != nil {
createExpectation.fulfill()
}
createExpectation.fulfill()
self.checkExpectationsImmediately()
}
do {