fix(feed): type in adding feed entity

This commit is contained in:
Alexey Kasyanchuk
2018-06-18 15:45:35 +03:00
parent 19380dbd9f
commit 5250b0f86c

View File

@ -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