Skip to content

Commit

Permalink
refactor: move !!
Browse files Browse the repository at this point in the history
  • Loading branch information
BrayanDSO committed May 27, 2024
1 parent 6a0bd0e commit 220a814
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class ReviewerViewModel(cardMediaPlayer: CardMediaPlayer) :
PostRequestHandler {

private var queueState: Deferred<CurrentQueueState?> = asyncIO {
withCol { sched.currentQueueState() }
// this assumes that the Reviewer won't be launched if there isn't a queueState
withCol { sched.currentQueueState() }!!
}
override var currentCard = asyncIO {
// this assumes that the Reviewer won't be launched if there isn't a queueState
queueState.await()!!.topCard
}
var isQueueFinishedFlow = MutableSharedFlow<Boolean>()
Expand Down

0 comments on commit 220a814

Please sign in to comment.