fix: avoid node 18 different behaviour with Readable.destroy https://github.com/rejetto/hfs/issues/54#issuecomment-1159362239

Massimo Melina committed Jun 18, 2022 at 16:12 UTC 7328bec466da865a4be34833f370ed63912cd923
1 file changed +1 -1
server/src/api.file_list.ts
+1 -1
@@ -38,7 +38,7 @@ export const file_list: ApiHandler = async ({ path, offset, limit, search, omit,
38 if (!sse)
39 return new ApiError(code)
40 list.error(code)
41 - list.destroy(code)
41 + list.end()
42 return list
43 }
44