Skip to content

Commit

Permalink
Fix undefined check (#22475)
Browse files Browse the repository at this point in the history
...derp
  • Loading branch information
salazarm authored and cmpadden committed Jun 13, 2024
1 parent ec1b583 commit a40b313
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class HourlyDataCache<T> {
private saveTimeout?: ReturnType<typeof setTimeout>;
private registeredUnload: boolean = false;
private async saveCacheToIndexedDB() {
if (typeof jest !== undefined) {
if (typeof jest !== 'undefined') {
if (!this.indexedDBCache) {
return;
}
Expand Down

0 comments on commit a40b313

Please sign in to comment.