Skip to content

Commit

Permalink
Fix sintax
Browse files Browse the repository at this point in the history
  • Loading branch information
rickytribbia committed Dec 2, 2019
1 parent b2579c3 commit a785e00
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions Bluejay/Bluejay/Queue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,7 @@ class Queue {
}

if isCBCentralManagerReady {
precondition(queue.filter({ queueable -> Bool in
switch queueable.state {
case .failed:
return false
default:
return true
}
}).count == 0, "Queue is active and is not emptied at the end of cancel all.")
precondition(queue.filter({ !$0.state.isFinished }).isEmpty, "Queue is active and is not emptied at the end of cancel all.")
} else {
precondition(!queue.contains { queueable -> Bool in
!queueable.state.isFinished
Expand Down

0 comments on commit a785e00

Please sign in to comment.