Skip to content

Commit

Permalink
chore: fix flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
abendi committed Jul 11, 2024
1 parent ab06a20 commit e2e7282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class DataLoader<K, V, C = K> {

const batch = getCurrentBatch(this);
const cacheMap = this._cacheMap;
let cacheKey;
let cacheKey: ?C;

// If caching and there is a cache-hit, return cached Promise.
if (cacheMap) {
Expand All @@ -106,7 +106,7 @@ class DataLoader<K, V, C = K> {

// If caching, cache this promise.
if (cacheMap) {
cacheMap.set(cacheKey, promise);
cacheMap.set((cacheKey: any), promise);
}

return promise;
Expand Down

0 comments on commit e2e7282

Please # to comment.