Skip to content

Commit

Permalink
review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Tiwari authored and GitHub committed Jun 30, 2022
1 parent 3d236ac commit d351e68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ async function run(): Promise<void> {
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
});
if (cacheId == -1) {
return;
}

core.info(`Cache saved with key: ${primaryKey}`);
if (cacheId != -1) {
core.info(`Cache saved with key: ${primaryKey}`);
}
} catch (error: unknown) {
utils.logWarning((error as Error).message);
}
Expand Down

0 comments on commit d351e68

Please sign in to comment.