fix(feed): type in adding feed entity
This commit is contained in:
@ -61,7 +61,7 @@ module.exports = class Feed {
|
|||||||
if(this.feed.length >= this.max)
|
if(this.feed.length >= this.max)
|
||||||
{
|
{
|
||||||
//cleanup
|
//cleanup
|
||||||
for(let i = this.feed.length - 1; i <= 0; i--)
|
for(let i = this.feed.length - 1; i >= 0; i--)
|
||||||
if(this._compare(this.feed[i]) <= 0)
|
if(this._compare(this.feed[i]) <= 0)
|
||||||
this.feed.pop()
|
this.feed.pop()
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user