Skip to content

Commit 356a8b8

Browse files
committed
Implement no-op clearCache in GitLab reporter
1 parent 0bdd637 commit 356a8b8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/reporter/gitlab/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,9 @@ export default class GitLab {
379379
generateSnapshotsBaseUrl(serviceName, termsType) {
380380
return `${this.baseURL}/${this.commonParams.owner}/${this.commonParams.repo}/-/blob/main/${encodeURIComponent(serviceName)}/${encodeURIComponent(termsType)}`;
381381
}
382+
383+
// GitLab API responses are not cached unlike GitHub, so this method only exists to satisfy the Reporter interface contract
384+
clearCache() { /* eslint-disable-line class-methods-use-this */
385+
logger.debug('Cache clearing not implemented for GitLab reporter as it is not needed');
386+
}
382387
}

0 commit comments

Comments
 (0)