Skip to content

Commit

Permalink
Fix wording in the comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Oct 12, 2021
1 parent 86b9711 commit 8f41aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-fetch/src/middlewares/preloading.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function createPreloadingMiddleware( preloadedData ) {
if ( 'GET' === method && cache[ path ] ) {
const cacheData = cache[ path ];

// Unsetting the cache key ensures that the data is only preloaded a single time
// Unsetting the cache key ensures that the data is only used a single time
delete cache[ path ];

return Promise.resolve(
Expand All @@ -74,7 +74,7 @@ function createPreloadingMiddleware( preloadedData ) {
) {
const cacheData = cache[ method ][ path ];

// Unsetting the cache key ensures that the data is only preloaded a single time
// Unsetting the cache key ensures that the data is only used a single time
delete cache[ method ][ path ];

return Promise.resolve( parse ? cacheData.body : cacheData );
Expand Down

0 comments on commit 8f41aaa

Please sign in to comment.