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 // add item to either front ot back of queue
boolean addToFront = UserPreferences.enqueueAtFront(); boolean addToFront = UserPreferences.enqueueAtFront();
if (addToFront) { if (addToFront) {
queue.add(0 + i, item); queue.add(i, item);
events.add(QueueEvent.added(item, 0 + i)); events.add(QueueEvent.added(item, i));
} else { } else {
queue.add(item); queue.add(item);
events.add(QueueEvent.added(item, queue.size() - 1)); events.add(QueueEvent.added(item, queue.size() - 1));