do not restore if caches does not exist
This commit is contained in:
1 parent
47ab9e7777
commit
19b0faf982
3 files changed
+62
-18
No files matched your search
@@ -64,8 +64,9 @@ export class State implements IState {
|
||||
this.reset();
|
||||
const serialized = await this.stateStorage.restore();
|
||||
this.deserialize(serialized);
|
||||
core.info(
|
||||
`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`
|
||||
);
|
||||
if (this.processedIssuesIDs.size > 0)
|
||||
core.info(
|
||||
`state: restored with info about ${this.processedIssuesIDs.size} issue(s)`
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user