提交 a8f27df4 编写于 作者: C Christian Noon

Removed an unnecessary availability check now that Xcode 7.1 is out of beta.

上级 18f77cbc
......@@ -26,15 +26,11 @@ extension NSURLSessionConfiguration {
static func backgroundSessionConfigurationForAllPlatformsWithIdentifier(identifier: String) -> NSURLSessionConfiguration {
let configuration: NSURLSessionConfiguration
#if os(iOS) || os(watchOS) || os(tvOS)
if #available(OSX 10.10, *) {
configuration = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier(identifier)
#else
if #available(OSX 10.10, *) {
configuration = NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier(identifier)
} else {
configuration = NSURLSessionConfiguration.backgroundSessionConfiguration(identifier)
}
#endif
} else {
configuration = NSURLSessionConfiguration.backgroundSessionConfiguration(identifier)
}
return configuration
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册