Skip to content

Commit 583e254

Browse files
committed
don't write empty files
1 parent 61eb3de commit 583e254

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

modules/cache.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ class Cache {
104104
}
105105

106106
async store ( filename, fileData, permanent = false ) {
107+
if(!fileData){
108+
return true;
109+
}
110+
107111
let cachePath = path.join( this.cachePath, this.normalizeName( filename ) );
108112

109113
if ( permanent ) {

0 commit comments

Comments
 (0)