Fix pointless arithmetic expression
This commit is contained in:
parent
e02baebf02
commit
eaa9947869
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue