Skip to content

Commit

Permalink
Remove incorrect non-null assertion. (apollographql#12089)
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas authored Nov 11, 2024
1 parent bd54b2a commit 2eab7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link/persisted-queries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const createPersistedQueryLink = (
defaultCacheSizes["PersistedQueryLink.persistedQueryHashes"]
);
}
let hash = hashesByQuery.get(query)!;
let hash = hashesByQuery.get(query);
if (!hash) hashesByQuery.set(query, (hash = getHashPromise(query)));
return hash;
}
Expand Down

0 comments on commit 2eab7e0

Please sign in to comment.