Fix pointless arithmetic expression

This commit is contained in:
Martin Fietz 2018-01-14 18:03:22 +01:00
parent e02baebf02
commit eaa9947869
1 changed files with 2 additions and 2 deletions

View File

@ -382,8 +382,8 @@ public class DBWriter {
// add item to either front ot back of queue
boolean addToFront = UserPreferences.enqueueAtFront();
if (addToFront) {
queue.add(0 + i, item);
events.add(QueueEvent.added(item, 0 + i));
queue.add(i, item);
events.add(QueueEvent.added(item, i));
} else {
queue.add(item);
events.add(QueueEvent.added(item, queue.size() - 1));