Skip to content

Commit 24df806

Browse files
committed
fix(glob-cache): check if info is not null
Signed-off-by: Charlike Mike Reagent <[email protected]>
1 parent 265552f commit 24df806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

@packages/glob-cache/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ globCache.stream = async function* globCacheStream(options) {
161161
};
162162

163163
ctx.cacheFile = info;
164-
if (hash) {
164+
if (hash && info) {
165165
ctx.cacheFile.stat = hash.stat;
166166
}
167167

0 commit comments

Comments
 (0)