Skip to content

Commit

Permalink
Format the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko committed Oct 7, 2021
1 parent 179abbe commit d71c48f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api-fetch/src/middlewares/preloading.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ function createPreloadingMiddleware( preloadedData ) {
cache[ method ] &&
cache[ method ][ path ]
) {
// Unsetting the cache key ensures that the data is only preloaded a single time
const cacheData = cache[ method ][ path ];

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

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

0 comments on commit d71c48f

Please sign in to comment.