From 08c1fa1714aa15775385f6484b510db486f416ac Mon Sep 17 00:00:00 2001 From: liubeijing Date: Sat, 12 Dec 2020 00:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20fis=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=8A=A5ERR=5FINVALID=5FARG=5FTYP?= =?UTF-8?q?=E9=94=99=E8=AF=AFhttps://github.com/fex-team/fis3/issues/1319?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cache.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/cache.js b/lib/cache.js index 20be221e1..8ed6a0d7a 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -39,8 +39,11 @@ var Cache = Object.derive(function(path, dir) { deps: this.deps, info: info }; - fis.util.write(this.cacheInfo, JSON.stringify(infos)); - fis.util.write(this.cacheFile, content); + + if (content) { + fis.util.write(this.cacheInfo, JSON.stringify(infos)); + fis.util.write(this.cacheFile, content); + } }, /**