Skip to content

Commit

Permalink
fix: remove unused lines of code from docs for SimpleCache/get.mdx
Browse files Browse the repository at this point in the history
I'd like to suggest removing  `render(path)` function definition since it's not being used in the example.
  • Loading branch information
remore authored and JakeChampion committed Sep 4, 2023
1 parent c2b8fc2 commit 51fd4af
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions documentation/docs/fastly:cache/SimpleCache/get.mdx
Expand Up @@ -55,11 +55,4 @@ async function app(event) {
}
});
}

async function render(path) {
// expensive/slow function which constructs and returns the contents for a given path
await new Promise(resolve => setTimeout(resolve, 10_000));
return path;
}

```

0 comments on commit 51fd4af

Please sign in to comment.