Fix @unknown default warnings in demo code

This commit is contained in:
bizz84
2019-04-30 22:29:40 +01:00
parent 6d1a7e56f0
commit e3b0e5e823
2 changed files with 4 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
print("\(purchase.transaction.transactionState.debugDescription): \(purchase.productId)")
case .failed, .purchasing, .deferred:
break // do nothing
@unknown default:
break // do nothing
}
}
}

View File

@@ -47,6 +47,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
print("\(purchase.transaction.transactionState.debugDescription): \(purchase.productId)")
case .failed, .purchasing, .deferred:
break // do nothing
@unknown default:
break // do nothing
}
}
}