Skip to content

Commit 02e11fd

Browse files
committed
Fix the case of no cache directory being present
1 parent f0abdcd commit 02e11fd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function readShortPagesIndex(done) {
106106
shortIndex = idx;
107107
return done(idx);
108108
});
109+
} else {
110+
return done(idx);
109111
}
110112
} else { // Just parse and set shortIndex variable, then return the value
111113
idx = JSON.parse(idx);

0 commit comments

Comments
 (0)