Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 56d3584

Browse filesBrowse files
committed
Update cache-distributor.ts
1 parent 08415fd commit 56d3584
Copy full SHA for 56d3584

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎src/cache-distributions/cache-distributor.ts

Copy file name to clipboardExpand all lines: src/cache-distributions/cache-distributor.ts
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.