Skip to content

Commit

Permalink
rfixupo
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 23, 2024
1 parent 176950e commit af0f344
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/cache/sqlite-cache-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class SqliteCacheStore {
const body = []
const store = this

const writable = new Writable({
return new Writable({
write (chunk, encoding, callback) {
if (typeof chunk === 'string') {
chunk = Buffer.from(chunk, encoding)
Expand All @@ -265,9 +265,6 @@ class SqliteCacheStore {
final (callback) {
store.prune()

/**
* @type {SqliteStoreValue | undefined}
*/
const existingValue = store.#findValue(key, true)
if (existingValue) {
// Updating an existing response, let's overwrite it
Expand Down Expand Up @@ -304,8 +301,6 @@ class SqliteCacheStore {
callback()
}
})

return writable
}

/**
Expand Down

0 comments on commit af0f344

Please sign in to comment.