Skip to content

Commit ad44d25

Browse files
committed
chore: remove useless code
This is already committed upstream, so I'm not catching the error at all.
1 parent 8501da3 commit ad44d25

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

src/index.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,24 +93,7 @@ async function installGitHubReleaseBinary(
9393
{ accept: "application/octet-stream" }
9494
);
9595

96-
// Tolerate cache errors.
97-
// Possibly related to https://github.com/actions/toolkit/issues/658
98-
try {
99-
await cache.saveCache(cachePaths, cacheKey);
100-
} catch (error) {
101-
// NOTE: this is an unlawful cast
102-
const typedError = error as Error;
103-
switch (typedError.name) {
104-
case cache.ValidationError.name:
105-
throw error;
106-
case cache.ReserveCacheError.name:
107-
core.info(typedError.message);
108-
break;
109-
default:
110-
core.warning(typedError.message);
111-
break;
112-
}
113-
}
96+
await cache.saveCache(cachePaths, cacheKey);
11497
}
11598

11699
// Permissions are an attribute of the filesystem, not the file.

0 commit comments

Comments
 (0)