Skip to content

Commit

Permalink
Changed var to val (ankidroid#12884)
Browse files Browse the repository at this point in the history
* Changed var to val

* Requested changes added
  • Loading branch information
SanjaySargam authored Nov 27, 2022
1 parent ec69e47 commit 3e214a4
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,8 @@ fun deleteMultipleNotes(
// delete note
val uniqueNoteIds = LongArray(notes.size)
val notesArr = notes.toTypedArray()
var count = 0
for (note in notes) {
uniqueNoteIds[count] = note.id
count++
for ((index, note) in notes.withIndex()) {
uniqueNoteIds[index] = note.id
}
col.markUndo(UndoDeleteNoteMulti(notesArr, allCards))
col.remNotes(uniqueNoteIds)
Expand Down

0 comments on commit 3e214a4

Please sign in to comment.