Use the first item in the queue since it is the most recent.

This commit is contained in:
Logan Smyth 2016-07-06 23:30:45 -07:00
parent 193b9b5797
commit 11d49db23b

View File

@ -99,7 +99,7 @@ export default class Buffer {
getLast(): string {
if (this._queue.length > 0) {
const last = this._queue[this._queue.length - 1][0];
const last = this._queue[0][0];
return last[last.length - 1];
}