Skip to content

Commit 20a0b65

Browse files
committed
More.
1 parent a0c0371 commit 20a0b65

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/swift/Queue.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ public struct DispatchQueueAttributes : OptionSet {
3333
public static let concurrent = DispatchQueueAttributes(rawValue: 1<<1)
3434

3535
private var _translatedValue: DispatchQueue.Attributes {
36-
switch self {
37-
case .concurrent: return .concurrent
38-
default: return []
39-
}
36+
if self.contains(.concurrent) { return .concurrent }
37+
return []
4038
}
4139
}
4240

@@ -97,7 +95,7 @@ public extension DispatchQueue {
9795
public enum GlobalQueueDeprecatedPriority {
9896
case qosBackground
9997

100-
private var _translatedValue: DispatchQoS {
98+
private var _translatedValue: DispatchQoS.QoSClass {
10199
switch self {
102100
case .qosBackground: return .background
103101
}

0 commit comments

Comments
 (0)