소스 검색

Fix @unknown default warnings in demo code

bizz84 6 년 전
부모
커밋
e3b0e5e823
2개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      SwiftyStoreKit-iOS-Demo/AppDelegate.swift
  2. 2 0
      SwiftyStoreKit-macOS-Demo/AppDelegate.swift

+ 2 - 0
SwiftyStoreKit-iOS-Demo/AppDelegate.swift

@@ -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
                 }
             }
         }

+ 2 - 0
SwiftyStoreKit-macOS-Demo/AppDelegate.swift

@@ -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
                 }
             }
         }