From a034cda53be85877905242065adc68268486a043 Mon Sep 17 00:00:00 2001 From: Albert-cord Date: Mon, 11 Mar 2019 20:23:46 +0800 Subject: [PATCH] =?UTF-8?q?debug=20issue=20#2098=20for=20function=20Cache,?= =?UTF-8?q?=E4=BF=AE=E6=94=B9Cache=E7=B1=BB=E4=B8=8Bput=E7=9A=84bug?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E5=BE=97this.size=E8=83=BD=E5=A4=9F=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E8=AE=B0=E5=BD=95Cache=E7=A9=BA=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/seed/cache.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/seed/cache.js b/src/seed/cache.js index 6e1045e1f..b5a56dcd6 100644 --- a/src/seed/cache.js +++ b/src/seed/cache.js @@ -40,9 +40,8 @@ Cache.prototype = { /* istanbul ignore if */ if (this.size === this.limit) { this.shift() - } else { - this.size++ } + this.size++ //#2098 return value },