Skip to content

Commit

Permalink
Use pre-TypeScript 4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
t0yv0 committed May 19, 2022
1 parent c1a16ee commit 1023e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ async function run() {
if (cacheEnabled && cacheKey !== undefined) {
try {
await cache.saveCache([dest], cacheKey);
} catch (error: unknown) {
} catch (error) {
const typedError = error as Error;
if (typedError.name === cache.ValidationError.name) {
throw error;
Expand Down

0 comments on commit 1023e6a

Please sign in to comment.