Skip to content

Commit

Permalink
[#79] Android: Minor code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Nov 12, 2024
1 parent 25401da commit 493225c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ class ReactNativeFsModule internal constructor(context: ReactApplicationContext)
// If the queue has drained, it is success, we are done.
if (queue.isEmpty()) return promise.resolve(null)

val next = queue.removeAt(queue.size - 1)
val next =
if (Build.VERSION.SDK_INT >= 35) queue.removeLast()
else queue.removeAt(queue.size - 1)

currentFrom = next.first
currentInto = next.second
}
Expand Down

0 comments on commit 493225c

Please sign in to comment.