We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a1a626 commit f2b2bffCopy full SHA for f2b2bff
src/components/httpRoutes/commands.ts
@@ -7,7 +7,7 @@ import { hasP2PInterface } from '../../utils/config.js'
7
import { validateCommandParameters } from './validateCommands.js'
8
import { Readable } from 'stream'
9
10
-async function mapChunkToBuffer(chunk: any): Promise<Buffer | Uint8Array> {
+function mapChunkToBuffer(chunk: any): Buffer | Uint8Array {
11
if (typeof chunk === 'string') {
12
return Buffer.from(chunk)
13
}
0 commit comments