Skip to content

Commit 1eb693e

Browse files
committed
refactor: rename isDeckAndSubdeckEmpty to areDeckAndSubdecksEmpty
1 parent e93b70b commit 1eb693e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AnkiDroid/src/main/java/com/ichi2/anki/DeckPicker.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2168,7 +2168,7 @@ open class DeckPicker :
21682168
return
21692169
}
21702170

2171-
if (isDeckAndSubdeckEmpty(did)) {
2171+
if (areDeckAndSubdecksEmpty(did)) {
21722172
showEmptyDeckSnackbar()
21732173
updateUi()
21742174
return
@@ -2666,7 +2666,7 @@ open class DeckPicker :
26662666
*
26672667
* @param did The id of a deck with no pending cards to review
26682668
*/
2669-
private suspend fun isDeckAndSubdeckEmpty(did: DeckId): Boolean {
2669+
private suspend fun areDeckAndSubdecksEmpty(did: DeckId): Boolean {
26702670
val node = getNodeByDid(did)
26712671
return withCol {
26722672
node.all { decks.isEmpty(it.did) }

0 commit comments

Comments
 (0)