Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
chore: rename variable to be more descriptive
Browse files Browse the repository at this point in the history
  • Loading branch information
smeijer committed May 1, 2022
1 parent f2df7ab commit 68d9783
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/traverse.ts
Expand Up @@ -353,7 +353,7 @@ export async function traverse(
break;
}
}
} catch (e) {
} catch (error) {
if (config.cacheId) {
invalidateEntry(path);
invalidateEntries<FileStats>((meta) => {
Expand All @@ -362,11 +362,11 @@ export async function traverse(
});
}

if (e instanceof Error && !(e instanceof InvalidCacheError)) {
throw InvalidCacheError.wrap(e, path);
if (error instanceof Error && !(error instanceof InvalidCacheError)) {
throw InvalidCacheError.wrap(error, path);
}

throw e;
throw error;
}

return result;
Expand Down

0 comments on commit 68d9783

Please sign in to comment.