8000 Update cache-distributor.ts · dhvcc/setup-python@56d3584 · GitHub
[go: up one dir, main page]

Skip to content

Commit 56d3584

Browse files
committed
Update cache-distributor.ts
1 parent 08415fd commit 56d3584

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cache-distributions/cache-distributor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ abstract class CacheDistributor {
4545
}
4646

4747
public handleMatchResult(matchedKey: string | undefined, primaryKey: string) {
48-
if (matchedKey == primaryKey) {
48+
if (matchedKey) {
4949
core.saveState(State.CACHE_MATCHED_KEY, matchedKey);
5050
core.info(`Cache restored from key: ${matchedKey}`);
5151
} else {
5252
core.info(`${this.packageManager} cache is not found`);
5353
}
54-
core.setOutput('cache-hit', Boolean(matchedKey));
54+
core.setOutput('cache-hit', matchedKey === primaryKey);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)
0